mirror of
https://github.com/sahinakkaya/til.git
synced 2024-12-23 07:39:36 +01:00
14 lines
175 B
Markdown
14 lines
175 B
Markdown
You can loop through the files with:
|
|
```bash
|
|
for f in * ; do
|
|
echo $f
|
|
done
|
|
```
|
|
|
|
If you want to loop through only directories:
|
|
```bash
|
|
for d in */ ; do
|
|
echo $d
|
|
done
|
|
```
|