cut

  1. Using the -c flag cuts based on the column number.
  2. Using the -f flag cuts based on fields delimited by a tab (default). Use the -d flag to set the delimiter.
What do each of these do?

cat file1 | cut -f2,5,6
ls -l | cut -f2,5,6
ls -l | cut -f2,5,6 -d' '
ls -l / | cut -c13-
cat data.csv | cut -f2,5 -d','