No. You didn't specify it in your request.
Quote:
To list all files in your directory and sub-directories, replace
`ls -1` by `find .`
|
Danny,
I dont think we may require `ls -1` in the for loop in case we are listing the files/directories in the Current working directory just an * will do.
Also note `find .` or `ls -1` or simple * will list all files & directories,so we may to have use,
Quote:
for file in $(find . -name '*' -type f -print ) ; do
#Replacement Logic
done
|
Please correct me if am wrong.
Thanks
Nagarajan Ganesan