path=`pwd`
ls $path | while read line
do
echo $line
done
pwd=`pwd`
filelist=`ls $dir`
for file in $filelist
do
echo $file
done
path=`pwd`
ls $path | while read line
do
echo $line
done
pwd=`pwd`
filelist=`ls $dir`
for file in $filelist
do
echo $file
done