User:Jcllings
This is my BASH scriptorium and the place where I keep notes on writing them. BASH, is the Borne Again SHell. BASH is a programming language that one writes to execute commands on a Linux or Unix system. The official BASH website is here. BASH is an interpreted language which means it runs on a virtual machine like Java does. Unfortunately, BASH isn't all that cross-platform. For the most part, it is for Unix only. Mac's do come with it, by the way. One can run BASH on Windows but you need Cygwin for that particular trick. Cygwin can be a little tricky to install, for Windows software but if you're careful to follow the instructions, it shouldn't be a problem. Documentation is fair for Cygwin.
While BASH is the grand Unix standard, it isn't the best language to be writing scripts in these days, however... It is important for any Unix or Linux user to be able to read and trace through BASH. Why? Because you may need these skills if something goes wrong on your Unix or Linux machine. Can't tell you how many times it has come in handy.
Jcllings 06:47, January 24, 2010 (UTC)
Trashy Scripting
Moved to: LinuxQuestions Wiki - Scripts
Scripting Tips
Using set -e in your script will cause it to drop dead on the first error. This is a good thing when manipulating an operating system, file system or if the script otherwise runs very long.
Jcllings 06:47, January 24, 2010 (UTC)
Color Prompts
See the links section below for a marvellous article on colourized BASH prompts.
Tip: dircolors is a bash command of interest for folks who want to colourize the output of the ls command.
Jcllings 06:46, January 24, 2010 (UTC)
Links
Jcllings 06:46, January 24, 2010 (UTC)