Wednesday 14 November 2012

Get current directory path

CURRENTDIR=`pwd`
echo $CURRENTDIR
#will print the current directory

Note: note the ` char.

No comments:

Post a Comment