cut
Basics
Display 2nd character from each line in a file
cut -c2 test.txtDisplay first three characters from each line in a file
cut -c1-3 test.txtDisplay forst 8 characters from each line in a file
cut -c-8 test.txtDisplay 1st field when : is the delimeter between the fields in the file
cut -d ':' -f1 test.txtDisplay the 1st and 6th fields when : is used as a delimiter
cut -d ':' -f1,6 test.txtDisplay all fields except the 7th field when : is used as the delimiter
cut -d ':' -complement -s -f7 test.txtLast updated