Read the command syntax, cut is used to cut parts of lines from specified files or piped data and print the result to standard output. Sed is used for insertion, deletion, search and replace(substitution). We meed to use the standard output from the first part of the command to feed the second part.