mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
Never parse ls.
http://mywiki.wooledge.org/ParsingLs It's about the only thing I really know about bash.
This commit is contained in:
parent
8dd00d8c9b
commit
ce611eaceb
@ -1,5 +1,5 @@
|
||||
# To implement a for loop:
|
||||
for file in `ls .`;
|
||||
for file in *;
|
||||
do
|
||||
echo $file found;
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user