Date: Mon, 4 Feb 2002 17:20:07 -0800 (PST) From: "Crist J. Clark" <cristjc@earthlink.net> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/34620: revline: new script that may be useful. Message-ID: <200202050120.g151K7Z43015@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/34620; it has been noted by GNATS. From: "Crist J. Clark" <cristjc@earthlink.net> To: Sheldon Hearn <sheldonh@starjuice.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202050120.g151K7Z43015>