Top 10 commands you can use while writing scripts in UNIX.
- $? = It tells return code ‘0’ or error of previous run command
- 2>&1 = 2 means stderror. &1 means output stdout
- > /dev/null = It will write to null. Means nothing
- awk = Programming Language to parse chars
- sed = Programming language to substitute chars
- $0= It contains actual command. $1…. $9 represents attributes
- $# ==> Total number of command line arguments
- Typeset -u VARIABLE => to convert into upper case
- Typeset -l VARIABLE => to covert into lower case
- crontab -e ==> refresh every minute
In my next post I will give more tips on UNIX scripts