Unixmen posted a few bash scripting examples
Now that we know how to create a very basic script and run them its time to get started on learning how statements and variables work. Every language has its own way of using statements and variables, they might look slightly different when comparing one language to another, but they all have the same goal in mind. That makes bash scripting the ideal language to use as a stepping stone onto other programming languages, because once you understand the basics of programming you can easily work up to more difficult languages.Bash scripting: Statements and variables