From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 4 21:19:07 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 1D49B106566B for ; Sun, 4 Mar 2012 21:19:07 +0000 (UTC) (envelope-from misconfiguration@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9500B8FC0C for ; Sun, 4 Mar 2012 21:19:06 +0000 (UTC) Received: by wibhn6 with SMTP id hn6so2068048wib.13 for ; Sun, 04 Mar 2012 13:19:05 -0800 (PST) Received-SPF: pass (google.com: domain of misconfiguration@gmail.com designates 10.216.82.141 as permitted sender) client-ip=10.216.82.141; Authentication-Results: mr.google.com; spf=pass (google.com: domain of misconfiguration@gmail.com designates 10.216.82.141 as permitted sender) smtp.mail=misconfiguration@gmail.com; dkim=pass header.i=misconfiguration@gmail.com Received: from mr.google.com ([10.216.82.141]) by 10.216.82.141 with SMTP id o13mr5031862wee.2.1330895945619 (num_hops = 1); Sun, 04 Mar 2012 13:19:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Q5KyIqQXRWdf7bi0dF8neXlfW2aItcf9LFX0YLNHUzU=; b=IRwE/5BuX69eu5iKa6x/tnBOs6fnsZ+Sq8FUdG9GygZwL0bIoheyuC+S2ms6+PO9Eh 5ZSZaGvJPTvaSVk6nPZ8RttLMJgZNFJbIl28oCkYETNu6aithvoTsXYCM7X//CBI/kFk Mrw6R6QIfsuiaKsYdbYR37nnV2q3efjndnG3g8v3ijaI0q+SAm3nA2eKB2nN0NQGy7k1 9mbg+/pCmESuxz4R5LyqQmCWDVsjD4MP1fQ+xLdbVOr7aBsOrTK9nxhFI2MPrKQSHv2y 7TN2HJP7BPeZ2rb2V3wrKL3Gf6Ng1O5HAX/Yl1B9HpBgSWpyyI9mfgZHLJvQafbWGvOp AUdA== MIME-Version: 1.0 Received: by 10.216.82.141 with SMTP id o13mr4016058wee.2.1330894175100; Sun, 04 Mar 2012 12:49:35 -0800 (PST) Received: by 10.180.4.72 with HTTP; Sun, 4 Mar 2012 12:49:35 -0800 (PST) In-Reply-To: References: Date: Sun, 4 Mar 2012 15:49:35 -0500 Message-ID: From: Nate Dobbs To: Phillip Spring X-Mailman-Approved-At: Mon, 05 Mar 2012 02:22:19 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org 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: Sun, 04 Mar 2012 21:19:07 -0000 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. > _______________________________________________ > 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 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 -- Cheers, Nate Dobbs RHCE