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 <gentoo-user+bounces-63793-garchives=archives.gentoo.org@gentoo.org>) id 1HmVLa-0007iq-CV for garchives@archives.gentoo.org; Fri, 11 May 2007 13:39:50 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l4BDaCT9028548; Fri, 11 May 2007 13:36:12 GMT Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l4BDT4xO018357 for <gentoo-user@lists.gentoo.org>; Fri, 11 May 2007 13:29:04 GMT Received: by ug-out-1314.google.com with SMTP id z38so681296ugc for <gentoo-user@lists.gentoo.org>; Fri, 11 May 2007 06:29:04 -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:in-reply-to:mime-version:content-type:references; b=Mv5PNX6BUBrA0mbEqYZq2wPPslDa5daGHaH4VMzczNEfjJURZolQjnuIDKn9t+/m9zhY+CNhYGsUk9vMNsfhXGAkVvcECC33tbyi8O+/zgirpIZN41KAAV6wAP1LeUNmiL/aqWiAncvevLOr3TFUncHk4MfJEEQ+ogTUtdjkEb4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=KA7au5KpsEWV4JLOh1bizsuGJYHAhnQ5ymrEVQ08KdM2hBPTIomU+QslEHtYFo5KayZHSlEsBt6c5op1JOGk+3rvCnru2moAG4Wd/DTkyKczI5oB5YbbwVJrfdn6IXU/tM579jilxkUgn/LjA+FJ+f+EaXxptCvrm/SWEaJ0XF4= Received: by 10.67.119.9 with SMTP id w9mr2857868ugm.1178890143995; Fri, 11 May 2007 06:29:03 -0700 (PDT) Received: by 10.66.219.10 with HTTP; Fri, 11 May 2007 06:29:03 -0700 (PDT) Message-ID: <7ad4c500705110629w6f0c0d75vbe3784abff60e42a@mail.gmail.com> Date: Fri, 11 May 2007 15:29:03 +0200 From: "Martin S" <shieldfire@gmail.com> To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] locate In-Reply-To: <20070511134843.72ffea84@hactar.digimed.co.uk> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15145_33048804.1178890143899" References: <7ad4c500705110534i2b153fe1y38f8640ff10c4fec@mail.gmail.com> <20070511134843.72ffea84@hactar.digimed.co.uk> X-Archives-Salt: 32ec2a4b-5634-4fbd-b16c-b70629b4e4dd X-Archives-Hash: 8e057cb917aaa1f5f0c0cf4e7c28c767 ------=_Part_15145_33048804.1178890143899 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline That works yes. A bit much to typw though. Don't know if I'd save much time from first doing a locate and the manually typing the cd [result] string :) Martin S 2007/5/11, Neil Bothwick <neil@digimed.co.uk>: > > On Fri, 11 May 2007 14:34:44 +0200, Martin S wrote: > > > 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. > > cd $(dirname $(locate foo.conf)) > > -- > Neil Bothwick > > WinErr 010: Reserved for future mistakes by our developers > > -- Regards, Martin S ------=_Part_15145_33048804.1178890143899 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline That works yes.<br>A bit much to typw though. Don't know if I'd save much time from first doing a locate and the manually typing the cd [result] string :)<br><br>Martin S<br><br><div><span class="gmail_quote">2007/5/11, Neil Bothwick < <a href="mailto:neil@digimed.co.uk">neil@digimed.co.uk</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Fri, 11 May 2007 14:34:44 +0200, Martin S wrote: <br><br>> Just recently tried using<br>><br>> locate foo.conf | cd<br>><br>> to automagically move to the directory in which I've saved foo.conf<br>> Of course it didn't work as you can't cd to /bar/foo.conf <br>><br>> I didn't find a way to dropping the actual file name from the result of<br>> locate.<br><br>cd $(dirname $(locate foo.conf))<br><br>--<br>Neil Bothwick<br><br>WinErr 010: Reserved for future mistakes by our developers <br><br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Martin S ------=_Part_15145_33048804.1178890143899-- -- gentoo-user@gentoo.org mailing list