Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Mar 2012 12:59:06 +0700
From:      Erich Dollansky <erichfreebsdlist@ovitrap.com>
To:        freebsd-hackers@freebsd.org
Cc:        Devin Teske <devin.teske@fisglobal.com>, Phillip Spring <gatinhodosseussonhos@hotmail.com>
Subject:   Re: Never forget a special trick...
Message-ID:  <201203051259.07439.erichfreebsdlist@ovitrap.com>
In-Reply-To: <4F544E36.5010707@freebsd.org>
References:  <SNT140-W376A917B480317048936FAD3530@phx.gbl> <0ED9AE29-CF83-43E3-A578-BC2BC91885ED@fisglobal.com> <4F544E36.5010707@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Monday 05 March 2012 12:25:10 Julian Elischer wrote:
> On 3/4/12 12:47 PM, Devin Teske wrote:
> > On Mar 4, 2012, at 12:29 PM, Phillip Spring wrote:
> >
> >> Dear anonymous open-source enthusiasts friends,
> >>
> >> How to echo a string backwards into a terminal?
> >> For example (or something like this):
> >>
> >> # echo @_foo_$
> >> oof
> >>
> >> Or it could be something else (that's because I forgot it):
> >>
> >> # echo $_bar_@
> >> rab
> >>
> >> Someone told me how to do it but I can't remember this trick.
> >> I just remember the date it happened: Oct-13-2011
> >>
> >
> > You're looking for rev(1)
> >
> > Example:
> >
> > # echo foo | rev
> > oof
> >
> gosh, how did I survive so long without this program..?

how? I did not and wrote it myself recently after a stupid program inverted randomly the output sequence.
> 
> oh yeah..  I remember.. never needed to do that..

You have been lucky.

Erich



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203051259.07439.erichfreebsdlist>