From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 5 06:30:17 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F329F1065678; Mon, 5 Mar 2012 06:30:16 +0000 (UTC) (envelope-from erichfreebsdlist@ovitrap.com) Received: from alogreentechnologies.com (alogreentechnologies.com [67.212.226.44]) by mx1.freebsd.org (Postfix) with ESMTP id 83A398FC14; Mon, 5 Mar 2012 06:30:16 +0000 (UTC) Received: from amd620.ovitrap.com ([49.128.188.2]) (authenticated bits=0) by alogreentechnologies.com (8.13.1/8.13.1) with ESMTP id q255xCtU031218; Sun, 4 Mar 2012 22:59:15 -0700 From: Erich Dollansky To: freebsd-hackers@freebsd.org Date: Mon, 5 Mar 2012 12:59:06 +0700 User-Agent: KMail/1.13.7 (FreeBSD/8.3-PRERELEASE; KDE/4.7.4; amd64; ; ) References: <0ED9AE29-CF83-43E3-A578-BC2BC91885ED@fisglobal.com> <4F544E36.5010707@freebsd.org> In-Reply-To: <4F544E36.5010707@freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201203051259.07439.erichfreebsdlist@ovitrap.com> Cc: Devin Teske , Phillip Spring Subject: Re: Never forget a special trick... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2012 06:30:17 -0000 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