# print entire fileawk'{print}' $filename# print only lines containing windowsawk'/windows/ {print}' $filename# print second and fourth fields from lines containing windowsawk'/windows/ {print $1,$3}' $filename# print the last column of each line in a fileawk'{print $NF}' $filename# print every third line starting from the first lineawk'NR%3==1' $filename# using specific character as separatorprintf'1:2:3'|awk-F":"'{print $1}'# sum integers from a fileprintf'1\n2\n3\n'|awk'{sum += 1} END {print sum}'