Never forget a special trick...

Lars Engels lars.engels at 0x20.net
Mon Mar 5 18:45:11 UTC 2012


On Sun, Mar 04, 2012 at 03:49:35PM -0500, Nate Dobbs wrote:
> On Sun, Mar 4, 2012 at 3:29 PM, Phillip Spring <
> gatinhodosseussonhos at hotmail.com> 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
> >
> > []'s
> > Phillip.
> >  _______________________________________________
> > freebsd-hackers at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> >
> 
> I'm not entirely sure how to do this in any arbitrary shell - although you
> could simply use the 'rev' command.
> 
> %echo HELLO! | rev
> !OLLEH
> 
> Here is a link to the man page:
> 
> http://unixhelp.ed.ac.uk/CGI/man-cgi?rev

http://man.freebsd.org/rev  ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20120305/a2d1ee01/attachment.pgp


More information about the freebsd-hackers mailing list