First page Back Continue Last page Overview Graphics
awk
awk is a powerful "pattern scanning and processing" language.
Use it to print a column of a file:
- E.g. awk '{print $2}' myfile.txt [print 2nd column]
Use it to do math:
- E.g. awk '{print $1+$2}' myfile.txt [add columns]
Use it as a calculator:
- E.g. echo '' | awk '{print sqrt(2)}'
Notes: