At 10:30 +0100 2004/01/06, Kuestner, Bjoern wrote: >I tried the following on Solaris 8 Awk is not always compatible with awk... > >cat test.txt | awk 'v10 {print v10} {v10=v9} {v9=v8} {v8=v7} {v7=v6} {v6=v5} >{v5=v4} {v4=v3} {v3=v2}{v2=v1} {v1=$0}' > test.out Make the beginning < 'v10!="" {print v10} > >(I am currently deciding where to set my priorities: Learn more about >Postfix, awk, maildrop or mailproc to catch up on everybody's suggestions. >(c: ) Awk will always be useful. Perl likewise, but I find it not so elegant to use in a pipe. -- Victor Eijkhout <eijkhout at cs.utk.edu>, 329 Claxton, Comp Sci, UT, Knoxville TN 37996. tel: 865 974 9308 (W), 865 673 6998 (H), 865 974 8296 (F) http://www.cs.utk.edu/~eijkhout/