Timeline for How to repeat loop n times in Bash
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 8, 2018 at 3:27 | vote | accept | Rocky86 | ||
| Aug 6, 2018 at 18:05 | vote | accept | Rocky86 | ||
| Aug 6, 2018 at 18:05 | |||||
| Aug 5, 2018 at 7:54 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 11 characters in body
|
| Aug 5, 2018 at 7:15 | comment | added | Kusalananda♦ |
@ilkkachu Yes, that's a good idea, but here I'm just using inotifywait as a drop-in replacement for sleep.
|
|
| Aug 5, 2018 at 7:13 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 267 characters in body
|
| Aug 5, 2018 at 7:12 | comment | added | ilkkachu | With inotify, you could almost replace the whole loop. Just test if the file is there, and if not, inotifywait for a 100 seconds. Almost, since the file could be created just between the test and the inotify, and you'd sleep for the full 100 seconds before timing out... | |
| Aug 5, 2018 at 7:07 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 267 characters in body
|
| Aug 5, 2018 at 6:55 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
The Bourne shell had no $(()), for (( comes from ksh93 it's not bash-specific. typo
|
| Aug 5, 2018 at 6:37 | history | answered | Kusalananda♦ | CC BY-SA 4.0 |