Bash scripting: How to output and format text on Linux Shell

Discussion of programming related topics
Post Reply
User avatar
crosscourt
Posts: 11100
Joined: Sun Jan 14, 2018 5:38 pm
Location: Wash DC
Contact:

Bash scripting: How to output and format text on Linux Shell

Post by crosscourt »

Site Moderator
chris
Posts: 106
Joined: Mon Jan 15, 2018 11:37 pm
Location: UK

Re: Bash scripting: How to output and format text on Linux Shell

Post by chris »

There's a major mistake in that runthrough. He says "x=100" and then "echo x". That will echo "x" not "100". (Should be "$x"). ALSO he would be better doing a tutorial on the bash printf command.
User avatar
crosscourt
Posts: 11100
Joined: Sun Jan 14, 2018 5:38 pm
Location: Wash DC
Contact:

Re: Bash scripting: How to output and format text on Linux Shell

Post by crosscourt »

Feel free to contact him and discuss the issue.
Site Moderator
User avatar
tlmiller
Posts: 4848
Joined: Tue Jan 16, 2018 12:29 pm
Location: AZ, USA

Re: Bash scripting: How to output and format text on Linux Shell

Post by tlmiller »

Although he does it correctly in the screenshot, it does indeed show echo $x
Post Reply