Saturday, 16 April 2016

How to read the files under a directory ?


cd /path/dir
for fName in *
do
  echo "File name : ${fName}"
done

No comments:

Post a Comment

Note: only a member of this blog may post a comment.