On Wed, Jan 05, 2011 at 02:26:12AM -0800, S Mathias wrote:
$ echo ${PWD##*/} somefolder $ if "${PWD##*/}" -eq "asdf" > /dev/null; then echo "this is the asdf folder"; else exit 1; fi bash: notthatfolder: command not found... this is the asdf folder $
So i just want to check that i'm in an exact folder. e.g.: "asdf"
What's wrong with my one-liner?
What's wrong is you can't read man pages or research on your own. "man bash"; your problem is covered there.
John