[Gllug] Silly bash question: changing directory
James Goldwater
james at eccehomo.co.uk
Thu Aug 11 15:33:34 UTC 2005
I'm betting myself this is trivial, but I can't figure out a
non-agonizing way of doing this involving 'cut -f -1' or something like
thats bound to break on weird filenames.
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?
Thanks
James.
--
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list