Categorized | News

BASH Programming – Introduction HOW-TO

Posted on 06 December 2002 by Demian Turner

Are you running scripts to automate your database backups? Your file system backups? If not this is a great article for those interested learning the basics of BASH programming, also referred to as shell scripting. The author Mike G Mikkey covers everything you will need to get up and running with your first scripts.

If you find yourself wondering what “-lt”, “-z” and “-n” mean, be patient, the explanation comes in section 11. Or for more detail check out this page in the advanced tutorial

http://users.info.unicaen.fr/~jacques/NAPI/unite-A1/Adv-Bash-Scr-HOWTO/tests.html

Absolute beginers are not catered for, if you are in this camp remember your scripts have to be executable to work. After you have created your script in something like VI, save it and run
chmod 744 myScriptName.sh

to achieve this. Please refer to the “Linux / Unix” section of this site for more info on how to use VI, setup cron jobs, setting permissions, etc.

Bookmark and Share

Leave a Reply

Categories

Books

Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists

Facebook