awk command examples
Remove duplicate lines using awk
Print all lines from /etc/passwd that has the same uid and gid
Print only specific field from a file.
More awk examples: 8 Powerful Awk Built-in Variables – FS, OFS, RS, ORS, NR, NF, FILENAME, FNR
sed command examples
When you copy a DOS file to Unix, you could find \r\n in the end of each line. This example converts the DOS file format to Unix file format using sed command.
Print file content in reverse order
Add line number for all non-empty-lines in a file