You are looking at posts that were written on July 15th, 2008.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jun | Aug » | |||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | |||
I’m always forgetting the syntax to make “for” loops in Bash. Anyhow, I know I will have to come back here to find it, so I thought I would write put up this quick example with the hope that it will be useful to others as well.
for i in $(seq 1 100); do echo -n “file${i} “; touch file${i} 2>&1; done
The the above for loop will create 100 files (called file1, file2, etc.).
another for loop exampe