About 50 results
Open links in new tab
  1. bash - Terminating an infinite loop - Unix & Linux Stack Exchange

    Bash receives SIGINT while waiting for a foreground command, it waits until that foreground command terminates and then decides what to do about the SIGINT: If the command terminates due to the …

  2. bash - How do I make a while loop with multiple conditions stop at a ...

    Dec 14, 2018 · How do I make a while loop with multiple conditions stop at a true condition? Ask Question Asked 7 years, 2 months ago Modified 7 years, 2 months ago

  3. What's the Correct Way to Do a Read with While Loop

    Dec 14, 2022 · I came to a section of a bash book that is trying to show me that you can use a read statement in conjunction with a while loop to read each line of a file, and then capture the first two …

  4. How to loop over the lines of a file? - Unix & Linux Stack Exchange

    For more in-depth discussion see this StackOverflow discussion: How to use "while read" (Bash) to read the last line in a file if there’s no newline at the end of the file? Beware: this approach adds an …

  5. 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. If using while read loops for text processing in bash is bad...what ...

    Aug 9, 2021 · The point of the post you linked to is to explain that using bash to parse text files is a bad idea in general. It isn't specifically about using loops and there is nothing intrinsically wrong with shell …

  7. bash - How to use user input as a while loop condition - Unix & Linux ...

    How to use user input as a while loop condition Ask Question Asked 10 years, 5 months ago Modified 3 years, 4 months ago

  8. Need the exit code of condition function when a Bash "while" loop ...

    Nov 9, 2021 · At the beginning of the (a priori infinite) loop you would execute the condition command "manually" and store the exit code, check it, and break out of the loop if it is non-zero (indicating failure).

  9. bash - Why is this while loop exiting after the first iteration? - Unix ...

    Dec 16, 2021 · See also SSH connections running in the background don't exit if multiple connections have been started by the same shell Why is using a shell loop to process text considered bad …

  10. Why does this 'while' loop not recognize the last line?

    Nov 18, 2018 · Why does this 'while' loop not recognize the last line? Ask Question Asked 7 years, 2 months ago Modified 2 years, 11 months ago