Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!emory!hubcap!gatech!mcnc!uvaarpa!mmdf From: eichin@athena.mit.edu (Mark W. Eichin) Newsgroups: comp.lang.perl Subject: re: Perl script to reverse the order of lines. Message-ID: <1991Feb15.162910.29715@uvaarpa.Virginia.EDU> Date: 15 Feb 91 16:29:10 GMT Sender: mmdf@uvaarpa.Virginia.EDU (Uvaarpa Mail System) Reply-To: eichin@athena.mit.edu Organization: The Internet Lines: 13 |> The included script reversing the order of lines in a file. Unlike |> 'rev' which reverses the characters in each line, 'reverse' will |> reverse the order of the lines. Think of it as reversal in the other |> dimension! The usage is "reverse [ file ... ]" The BSD utilities include the "tac" program ("cat" in reverse :-) so that might be a better name for it. (I'm adding it to my perl-shell collection - it'll look for a perl script to do almost any command, only exec'ing a real command as a last resort... It's nice having a "truly" portable environment :-) _Mark_ MIT Student Information Processing Board -- Perl is the Yiddish of computer languages...