Lab 3

The command grep allows the user to find special patterns within files and displays the lines to the user.

lab 3 grep

 

The command echo is used to display a line of text.

lab 3 echo

The command head prints the first ten lines in a file.

head

The| Operator redirects the output of one command and pipe it as input to another.

sort lab 3

The tail command prints the last ten lines in a file.

tail

The < operator redirects input.

2

The > operator redirects output to a file.

Leave a Reply

Your email address will not be published. Required fields are marked *