About 50 results
Open links in new tab
  1. bash - How to make a for loop in command line? - Unix & Linux …

    Jul 12, 2017 · AFAIK semicolon in bash scripts makes shell execute current command synchronously and then go to the next one. Pressing enter does literally the same except it …

  2. How do I loop through only directories in bash?

    The sh -c script is the code that we'd like to execute on all the directories, so it iterates over its given arguments and does whatever it needs to do with each of them.

  3. How to repeat loop n times in Bash - Unix & Linux Stack Exchange

    Aug 5, 2018 · How to repeat loop n times in Bash Ask Question Asked 7 years, 6 months ago Modified 6 years, 11 months ago

  4. shell script - bash loop through list of strings - Unix & Linux Stack ...

    bash loop through list of strings Ask Question Asked 7 years, 7 months ago Modified 2 years, 11 months ago

  5. shell script - Bash while loop stop after a successful curl request ...

    Apr 9, 2021 · Bash while loop stop after a successful curl request [duplicate] Ask Question Asked 4 years, 10 months ago Modified 1 year, 5 months ago

  6. Traverse all subdirectories in and do something in Unix shell script

    Nov 25, 2018 · 2 I am a complete bash newbie, but a UN*X veteran. Although doubtless this can be done in Bash shell scripting, in the old days we used find [-maxdepth <levels>] <start-dir> …

  7. JSON with jq into bash array / loop through

    Jan 1, 2022 · I have a JSON result which I want to go through and send an alert, if one or several of the values in the JSON string is smashing thresholds. This bash command: for sat in …

  8. Bash for loop with string var containing spaces

    Apr 8, 2021 · Your last code snipped: It makes no sense to use getopts in this script if you only have a single option that signals "use these files". The script could just loop over "$@" to …

  9. bash - Terminating an infinite loop - Unix & Linux Stack Exchange

    Assume the loop lives in a script, add trap exit INT to the start of the script. (this is already covered by existing answers, but this answer additionally provides explanation)

  10. Parallelize a Bash FOR Loop - Unix & Linux Stack Exchange

    I have been trying to parallelize the following script, specifically each of the three FOR loop instances, using GNU Parallel but haven't been able to. The 4 commands contained within the …