Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site wucs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!mgnetp!we53!busch!wucs!nz From: nz@wucs.UUCP (Neal Ziring) Newsgroups: net.unix Subject: Re: reversing lines in a file Message-ID: <1184@wucs.UUCP> Date: Thu, 26-Sep-85 13:58:32 EDT Article-I.D.: wucs.1184 Posted: Thu Sep 26 13:58:32 1985 Date-Received: Sat, 28-Sep-85 08:22:07 EDT References: <2140@ukma.UUCP> <196@aber-cs.UUCP> Reply-To: nz@wucs.UUCP (Neal Ziring) Organization: Washington U. in St. Louis Lines: 11 Keywords: tail -r tools wierdness One way to reverse lines in a file is to use revgrep(1). Revgrep was posted to net.sources by yours truly about 3 weeks ago. It does a grep, backwards, so % revgrep '^' file.dat reverses the lines of file.dat. Revgrep has no length limits. If anyone missed revgrep on net.sources and would like a copy, I will be glad to mail it (or even re-post). Brought to you by Super Global Mega Corp .com