6

The basics of shell scripting - [Environment variables]

view full story
linux-howto

http://wiki.bash-hackers.org – Script files A shellscript usually resides inside a file. This file can be executable, but you can also call a Bash with that filename as parameter: bash ./myfile There is no need to add a boring filename extension like .bash or .sh. This is UNIX(r), where executables are not tagged by the extension, but by permissions (filemode). Of course, you can name the file like you want! To add proper filename extensions is a convention, nothing else. chmod +x ./myfile (HowTos)