Answer 3.4

3.4 Using Pipes

Exercise 3b

Using pipes, display all lines of list1.txt and list2.txt containing the letter 'p', and sort the result.

 

Answer

$ cat list1.txt list2.txt | grep p | sort

 

 

 

 

 

 

M.Stonebank@ee.surrey.ac.uk, © November, 2002