Bash Hello World in 60 Seconds

How to write a bash ‘hello world’ script in 60 seconds, admitedly it could of been faster … damn typos

Also the first line you can add as an alias, if your going to be writing a lot of bash scripts.

[FLOWPLAYER=bash_hello_world.mp4,600,200]

Or you can copy paste and have it done in about 5 seconds :-P

BPATH=`which bash`; echo "#! $BPATH" | awk '{print $1$2}' > script.sh

The reason for the echo and awk is when trying to do echo “#!$BPATH” > script.sh my shell wouldn’t cooperate so all the awk does is take out the space :-).

Comments