3.4 Pipes


Exercise 3b

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

 

Answer

% cat list1 list2 | grep p | sort

 

M. Stonebank, 9 October 2000,     D.R. Reynolds, 13 January 2009