0% found this document useful (0 votes)
9 views1 page

Processing Lines

The course 'Managing Files Using Bash and Z Shell' by Mateo Prigl covers four key commands for processing lines: cut, tr, uniq, and sort. The cut command splits lines based on a specified parameter, while tr replaces characters, uniq retains only unique lines, and sort organizes lines alphabetically or numerically. These commands are essential for effective file management in Bash and Z Shell environments.

Uploaded by

akym
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Processing Lines

The course 'Managing Files Using Bash and Z Shell' by Mateo Prigl covers four key commands for processing lines: cut, tr, uniq, and sort. The cut command splits lines based on a specified parameter, while tr replaces characters, uniq retains only unique lines, and sort organizes lines alphabetically or numerically. These commands are essential for effective file management in Bash and Z Shell environments.

Uploaded by

akym
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

"Managing Files Using Bash and Z Shell" course by Mateo Prigl at Pluralsight

Processing Lines
We mentioned four commands that process lines: cut, tr, uniq and sort.
The cut command will split the line by some given parameter. You can define
that parameter with the d option.
The f option will then define which piece of data you want to take, after the line
splitting.
tr stands for translate. It will literally replace characters. The first argument are
the characters you want to replace and the second argument are the ones you
want to replace them with.
uniq command will only leave the unique lines.
sort will sort the lines by numbers or the alphabet.

1/1 © Copyright 2020 by Pluralsight

You might also like