Removing Characters from Output with cut
Learn how to remove characters from the output using the cut command.
We'll cover the following
Now, let’s discuss the
cut command. The
cut command lets us remove text from the output stream or a file. Let’s give it a try:
$ echo 'hello world' | cut -c 2-4