Scripting

TwitterFacebook
Get flash to fully experience Pearltrees

Shell Programming

Last revision August 6, 2004 Expressions can be used in assigning values to new variables; as substitutions in command lines in the script; and in flow-of-control statements : if , foreach , while , and switch . http://pangea.stanford.edu/computing/unix/programming/shell/expressions.php
http://docstore.mik.ua/orelly/linux/lnut/ch08_04.htm 8.4.3. Predefined Shell Variables

Variables (Linux in a Nutshell, 3rd Edition)

Processing command line arguments is a pain in any language. If done manually, parsing even a few options and option value pairs in BASH is a huge pain. As such and given the nature of shell scripts, they usually have exceedingly poor options processing. http://bashcurescancer.com/the-60-second-getopts-tutorial.html

The 60 second getopts tutorial

http://bashcurescancer.com/10-steps-to-beautiful-shell-scripts.html Linux gurus don’t use cut , awk , and sed when they want to replace or strip out a portion if a variable. They use parameter substitution.

10 Steps to Beautiful Shell Scripts

http://linux-sxs.org/programming/bashcheat.html Bash Programming Cheat Sheet

Bash Programming Cheat Sheet