Never parse ls.

http://mywiki.wooledge.org/ParsingLs

It's about the only thing I really know about bash.
This commit is contained in:
barhamd 2014-08-08 11:52:43 -06:00
parent 8dd00d8c9b
commit ce611eaceb
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
# To implement a for loop: # To implement a for loop:
for file in `ls .`; for file in *;
do do
echo $file found; echo $file found;
done done