Answer 3.4

3.4 Using Pipes

Exercise 3b

a2ps -Pshd17 textfile is the command to print a text file to the printer shd17.

Using pipes, print all lines of list1 and list2 containing the letter 'p', sort the result, and print to the printer shd17.

 

Answer

% cat list1 list2 | grep p | sort | a2ps -Pshd17

 

M.Stonebank@ee.surrey.ac.uk, © November, 2002; Revised brudzimr@muohio.edu, 19th August 2006