shell pipeline to reverse the order of lines.
Mario Wolczko
mario at cs.man.ac.uk
Wed Feb 27 23:16:12 AEST 1991
In article <1991Feb19.132703.21495 at newcastle.ac.uk>, A.C.G.Saunders at newcastle.ac.uk (Aidan Saunders) writes:
>
> I missed the start of this thread, but if the subject line is still
> relevant (:-)), how about using tail -r
>
> ie:
> tail -r filename
>
> or if it needs to be on the end of a pipe:
>
> ... | tail -r
>
> Works OK in SunOS 4.1
Restriction: the maximum buffer size is 32Kb.
Try tail -r file|tail -r|cmp - file on a long file.
Mario
______ Dept. of Computer Science Internet: mario at cs.man.ac.uk
/~ ~\ The University uucp: mcsun!ukc!man.cs!mario
( __ ) Manchester M13 9PL JANET: mario at uk.ac.man.cs
`-': :`-' U.K. Tel: +44-61-275 6146 (FAX: 6280)
____; ;_____________the mushroom project___________________________________
More information about the Alt.sources.d
mailing list