- $? -- the exit status of last command
- 0 = success
- fail otherwise
- $# -- No. of arguments
- $@ -- All the arguments
Showing posts with label Script. Show all posts
Showing posts with label Script. Show all posts
Saturday, 3 July 2010
Little bash scripting learning
Variables:
Wednesday, 30 June 2010
Monday, 28 June 2010
Bash scripting
Start doing a bit bash scripting now....
this is some thing that fairly simple but took me a few minutes to figure out how...
this is some thing that fairly simple but took me a few minutes to figure out how...
- You can't use alias by default unless you turn on some kind of options
- to run a variable as a command, there are three commands that you can use
- eval, exec, source
- Variable should be upper case!
Subscribe to:
Posts (Atom)