This seems like a simple thing, but I can't seem to find an environment variable that has the local/current directory stored in it. I have a script that writes out the files in a directory. I want to append the full path to the file names in the output file.
make your own: pwd is the current directory
thisdir=$(pwd)
ls |
while read filename
do
echo "${thisdir}/${filename}"
done
Jim - thanks so much!!!
You have two choices ...
$ set
Would have shown you one ...
$ echo $pwd
Then there is the cmd:
$ pwd
-Enjoy
fh : )_~
thank you - much appreciated