[Gllug] Silly bash question: changing directory
James Goldwater
james at eccehomo.co.uk
Thu Aug 11 15:40:06 UTC 2005
Joel Bernstein wrote:
> On Thu, Aug 11, 2005 at 04:33:34PM +0100, James Goldwater wrote:
>
>>
>>Given a file (say a/b/c/myfile.txt) I need to change directory to a/b/c.
>> Is there a simple way of doing this in bash?
>
>
> I'm sure you /could/ do it in the shell but it's much easier to just
> hand it off to dirname(1).
>
> /joel
Thanks, just what I was looking for. -And- Vaughn's on form. It's a
great afternoon.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list