I feel stupid -- determine the full path to a file
Michael L Torrie
torriem at chem.byu.edu
Thu Dec 6 11:49:47 MST 2007
Derek Carter wrote:
>
> Try dirname and basename
nope. Doesn't work.
$ dirname `pwd`/../foo/baz
/my/current/path/../foo/baz
I need it to return
/my/current/foo/baz
>
> --
> Goozbach
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
>
--
Michael Torrie
Assistant CSR, System Administrator
Chemistry and Biochemistry Department
Brigham Young University
Provo, UT 84602
+1.801.422.5771
More information about the PLUG
mailing list