Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ukma!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.unix.questions Subject: Re: sorting and reversing lines of a file Message-ID: <9530@smoke.BRL.MIL> Date: 28 Jan 89 05:17:49 GMT References: <9056@burdvax.PRC.Unisys.COM> <9510@smoke.BRL.MIL> <899@auspex.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article <899@auspex.UUCP> guy@auspex.UUCP (Guy Harris) writes: >...the "rev" on my Sun, which is probably the one from 4BSD, reverses >the *characters* in each *line* of the file, but doesn't reverse the >lines themselves. Oops, sorry -- I should have checked before posting. Maybe "rev" combined with a "sideways" utility ... :-) Anyway, the pr|sort|cut approach I suggested should suffice.