Shell basics
Every process has at least 3 way of communication:
- STDIN
- STDOUT
- STDERR
Redirections <, >
** $echo “test message” > /tmp/file ** ** mail -s “mail test” < /tmp/file **
STDOUT of one command to STDIN of other use |
To execute second command if first is successful &&
Variables
prefixed with a dollar sign
referencing a variable ${var}
back quotes executes content
Filters, cut command
Cut command in detail https://www.geeksforgeeks.org/cut-command-linux-examples/
sort command
uniq command - print unique lines
wc - world counting