TIL: Looping through the files

This commit is contained in:
Asocia 2021-07-03 17:12:48 +03:00
parent 4223579660
commit 997abace67

View File

@ -0,0 +1,13 @@
You can loop through the files with:
```
for f in * ; do
echo $f
done
```
If you want to loop through only directories:
```
for d in */ ; do
echo $d
done
```