quick bash help!
Okay... quick shell programming question here.
In /foo there are several directories/files :
this is one directory
this is another
justafile.txt
I want :
for i in $(ls $(pwd)); do
echo $i
done
To return :
this is one directory
this is another
Instead it returns :
this
is
one
directory
this
is
another
justafile.txt
Any help would be much appreciated!
Thanks!
|