Possible Duplicate:
bash/fish command to print absolute path to a file
Say I'm in a directory /usr/temp/foo
, which has a file named bar.txt
How do I get the fullpath of bar.txt
? (which should be /usr/tem/foo/bar.txt
)
Possible Duplicate:
bash/fish command to print absolute path to a file
Say I'm in a directory /usr/temp/foo
, which has a file named bar.txt
How do I get the fullpath of bar.txt
? (which should be /usr/tem/foo/bar.txt
)
Try:
readlink -f bar.txt
Extra text to make SO happy.