Balu Sadhasivam wrote:
what is the benefit
ls -a would just display files...
which mets the requirements
whereas the script is more flexible and inside loop can do any operations with filenames..
no, you have to fix it by hand. If we like to delete the files, you will replace your
echo with an
rm, and I will replace
ls -a with
rm.
requirements dont stop there..would you write a script to just display files or make it compatible to changes that come in future..
Which changes that come in future? I don't see what script can do, which I can't do with
ls -a - planning for an unforeseable future needs far more information than given in this post.
YAGNI, KISS