From owner-freebsd-bugs Mon Feb 4 17:20:38 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 46EA937B416 for ; Mon, 4 Feb 2002 17:20:07 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g151K7Z43015; Mon, 4 Feb 2002 17:20:07 -0800 (PST) (envelope-from gnats) Date: Mon, 4 Feb 2002 17:20:07 -0800 (PST) Message-Id: <200202050120.g151K7Z43015@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Crist J. Clark" Subject: Re: bin/34620: revline: new script that may be useful. Reply-To: "Crist J. Clark" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/34620; it has been noted by GNATS. From: "Crist J. Clark" To: Sheldon Hearn Cc: bug-followup@FreeBSD.ORG Subject: Re: bin/34620: revline: new script that may be useful. Date: Mon, 4 Feb 2002 16:50:54 -0800 On Mon, Feb 04, 2002 at 02:20:03PM -0800, Sheldon Hearn wrote: > On Mon, 04 Feb 2002 16:58:52 EST, Seth wrote: > > > >Number: 34620 > > >Category: bin > > >Synopsis: revline: new script that may be useful. > > Between rev(1) and sort(1)'s -r option, I think we've got it covered, > both reversing text on a line and reversing lines. :-) Not really. rev(1) does, $ echo 'Reverse this.' | rev .siht esreveR And sort(1) sorts and then prints in reverse. This is not the same. There are two very good reasons not to add this. As the original poster points out, it is trivial to script in awk(1), perl(1), sh(1), or whatever. And the command that _really_ does what he wants is, $ tail -r -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message