> To switch lines > > 1 > 2 > 3 > > to be > > 3 > 2 > 1 > > use 'tac' That's what I was after. Thanks and sorry for the ambiguous description in the first place. The worst thing is that I have used tac several times before, but had completely forgotten about it. -- Martin.