On Wed, 31 Oct 2001, Doug Kearns wrote: > You could replace the awk invocation with +'/^$/+1'
Thanks for the information. May I ask you another question regarding awk, please? My wife is a linguist and she would for some of her research retrograde sort (i.e., sorting by words taken from the other end), like this. Unsorted set of words: pine mutt netscape kmail should be sorted in this set: pine netscape kmail mutt I can certainly use sort with two columns, like this: pine enip mutt ttum netscape epacsten kmail liamk and then sort according to the second column. However, I have not find an unix tool to create the second column (I could join two columns into one file with comm, but again, how to ghet the second column). I can write the script in Python, but I would love to know, whether something like that would be possible with awk or sed. Could you help me with that, please? Thanks Matej