Arthmetic operation
- eg: count=2;echo $(( count++ + 3 ));echo $count
Output and errors to null:
- ls cheap >/dev/null 2>&1
Redirect both the standard output (stdout) and standard error (stderr) of the command3 to the file /tmp/mylog.txt:
- command3 2>&1 >/tmp/mylog.txt