Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Mar 2012 13:09:57 -0800
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Lars Engels <lars.engels@0x20.net>
Cc:        Nate Dobbs <misconfiguration@gmail.com>, freebsd-hackers@freebsd.org, Phillip Spring <gatinhodosseussonhos@hotmail.com>
Subject:   Re: Never forget a special trick...
Message-ID:  <CAGH67wTMubOn4UP9BMyd=%2B5%2BqQp7Mj0cy9ssbFrPisfh1umYzA@mail.gmail.com>
In-Reply-To: <20120305184507.GL23354@e-new.0x20.net>
References:  <SNT140-W376A917B480317048936FAD3530@phx.gbl> <CAGjvUo6P%2BZGO1XniNPxehhmU==YoZcPKq4Kj3Fxr%2BUQ7m7vYkw@mail.gmail.com> <20120305184507.GL23354@e-new.0x20.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 5, 2012 at 10:45 AM, Lars Engels <lars.engels@0x20.net> wrote:
> 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@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.
>> > =A0_______________________________________________
>> > freebsd-hackers@freebsd.org mailing list
>> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>> > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.=
org"
>> >
>>
>> I'm not entirely sure how to do this in any arbitrary shell - although y=
ou
>> 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 =A0;-)

Now that (the fact that I can get to the manpages by using the man
subdomain) is a trick I can use :D...
Thanks!
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wTMubOn4UP9BMyd=%2B5%2BqQp7Mj0cy9ssbFrPisfh1umYzA>