From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HmUQI-00089T-P7 for garchives@archives.gentoo.org; Fri, 11 May 2007 12:40:39 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l4BCdGpS012490; Fri, 11 May 2007 12:39:16 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l4BCYol4007447 for ; Fri, 11 May 2007 12:34:51 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id EE91264F37 for ; Fri, 11 May 2007 12:34:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -0.143 X-Spam-Level: X-Spam-Status: No, score=-0.143 required=5.5 tests=[AWL=-1.089, HTML_10_20=0.945, HTML_MESSAGE=0.001] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fHsLKAsp0LYW for ; Fri, 11 May 2007 12:34:48 +0000 (UTC) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by smtp.gentoo.org (Postfix) with ESMTP id 4123764C9B for ; Fri, 11 May 2007 12:34:44 +0000 (UTC) Received: by ug-out-1314.google.com with SMTP id 23so639175ugr for ; Fri, 11 May 2007 05:34:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=M7KlPcYx92xOS+lg6/iEzA68juAqQoB8NUQmI1bBAA1fBOsQTt+w7VyJgkVQjuFwhgIFdsxsSeOSNdM//jvZT90Zga4UhSMPQL4G3iR1EfwEuhBWIRFCuPHwS6ibYsrVvCF55LBkoDf0MkD129qAdkZ0ihatd+FdKBEAf2CVLEg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=rOsidnO3IUeBCejrKv6Z6ROVBHy764lFwwZqcyhnsEqNPD3uLmuG3UNLaHKUi3T9i/4cK4rOKd5JeqVpBVUU5cSJ9jHdjfi9nGhXPMs9/t/fpbg7duDm9ZXG1WmtAf9syRxB6X9COWtMd5mz/80QrEWofD8yOjASilOT6tketzw= Received: by 10.67.89.5 with SMTP id r5mr2817363ugl.1178886884225; Fri, 11 May 2007 05:34:44 -0700 (PDT) Received: by 10.66.219.10 with HTTP; Fri, 11 May 2007 05:34:44 -0700 (PDT) Message-ID: <7ad4c500705110534i2b153fe1y38f8640ff10c4fec@mail.gmail.com> Date: Fri, 11 May 2007 14:34:44 +0200 From: "Martin S" To: gentoo-user Subject: [gentoo-user] locate Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14653_2133669.1178886884179" X-Archives-Salt: e9f5c7bf-888c-45ee-b498-08ee42b07f16 X-Archives-Hash: 6e77fbc3d5e728c94233d9068f2abefa ------=_Part_14653_2133669.1178886884179 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Just recently tried using locate foo.conf | cd to automagically move to the directory in which I've saved foo.conf Of course it didn't work as you can't cd to /bar/foo.conf I didn't find a way to dropping the actual file name from the result of locate. I did a brief google on locate, but didn't find a switch to drop the actual file name from the result. Can it be done, or if not what should I use to get the desired result? Regards, Martin S ------=_Part_14653_2133669.1178886884179 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Just recently tried using

locate foo.conf | cd

to automagically move to the directory in which I've saved foo.conf
Of course it didn't work as you can't cd to /bar/foo.conf

I didn't find a way to dropping the actual file name from the result of locate.
I did a brief google on locate, but didn't find a switch to drop the actual file name from the result.

Can it be done, or if not what should I use to get the desired result?


Regards,

Martin S ------=_Part_14653_2133669.1178886884179-- -- gentoo-user@gentoo.org mailing list