Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!unido!uniol!henseler From: henseler@uniol.UUCP (Herwig Henseler) Newsgroups: comp.unix.questions Subject: Re: Reversing a file? Message-ID: <891@uniol.UUCP> Date: 6 Oct 89 11:17:54 GMT References: Organization: University of Oldenburg, W-Germany Lines: 14 montnaro@sprite.crd.ge.com (Skip Montanaro) writes: > Does somebody have an elegant shell script for reversing the lines of a > file? The solution in perl: @file = <>; $i = $#file + 1; print $file[$i] while $i--; bye, Herwig -- ## Herwig Henseler (CS-Student) D-2930 Varel, Tweehoernweg 69 | Brain fault- ## ## EMail: henseler@uniol.UUCP (..!uunet!unido!uniol!henseler) | core dumped ##