David Baron wrote:
Quick answer: How might one retrieve the path to the most recent entry in a directory to pass to something else in a bash script?
kspecial@xzziroz:/tmp$ echo $OLDPWD /home/kspecial kspecial@xzziroz:/tmp$ echo $PWD /tmp kspecial@xzziroz:/tmp$PWD contains the current directory while OLDPWD contains the last accessed directory.
--K-sPecial [ http://xzziroz.freeshell.org irc://xzziroz.dtdns.net ]