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

Discussion of programming related topics
Post Reply
chris
Posts: 125
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.
crosscourt
Posts: 11176
Joined: Sun Jan 14, 2018 5:38 pm

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

Post by crosscourt »

Feel free to contact him and discuss the issue.
User avatar
tlmiller
Posts: 4904
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