Bash for loops

Don't do:

for i in `ls *.txt`; do echo $i; done;

When you can do it the correct way:

for i in *.txt; do echo $i; done;
Leave A Reply
All content licensed under the Creative Commons License