Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Mar 2012 12:47:31 -0800
From:      Devin Teske <devin.teske@fisglobal.com>
To:        Phillip Spring <gatinhodosseussonhos@hotmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Never forget a special trick...
Message-ID:  <0ED9AE29-CF83-43E3-A578-BC2BC91885ED@fisglobal.com>
In-Reply-To: <SNT140-W376A917B480317048936FAD3530@phx.gbl>
References:  <SNT140-W376A917B480317048936FAD3530@phx.gbl>

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

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

-- 
Devin

_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0ED9AE29-CF83-43E3-A578-BC2BC91885ED>