Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] locate
Date: Fri, 11 May 2007 12:56:10
Message-Id: 20070511134843.72ffea84@hactar.digimed.co.uk
In Reply to: [gentoo-user] locate by Martin S
1 On Fri, 11 May 2007 14:34:44 +0200, Martin S wrote:
2
3 > Just recently tried using
4 >
5 > locate foo.conf | cd
6 >
7 > to automagically move to the directory in which I've saved foo.conf
8 > Of course it didn't work as you can't cd to /bar/foo.conf
9 >
10 > I didn't find a way to dropping the actual file name from the result of
11 > locate.
12
13 cd $(dirname $(locate foo.conf))
14
15 --
16 Neil Bothwick
17
18 WinErr 010: Reserved for future mistakes by our developers

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] locate Martin S <shieldfire@×××××.com>