########################################################### # Illustrates use of 'nth', a script/filter available on the # machines for selecting columns from standard input ############################################################ lnx1 1> cat powers 1 1 1 1 2 4 8 16 3 9 27 81 4 16 64 256 5 25 125 625 6 36 216 1296 7 49 343 2401 8 64 512 4096 9 81 729 6561 10 100 1000 10000 lnx1 2> nth 1 2 < powers 1 1 2 4 3 9 4 16 5 25 6 36 7 49 8 64 9 81 10 100 lnx1 3> nth 1 3 1 < powers 1 1 1 2 8 2 3 27 3 4 64 4 5 125 5 6 216 6 7 343 7 8 512 8 9 729 9 10 1000 10