mirror of
https://github.com/cheat/cheat.git
synced 2025-07-12 00:31:58 +02: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:
@ -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
|
||||||
|
Reference in New Issue
Block a user