Timeline for When do you need "...|while read..."?
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 27, 2017 at 20:20 | vote | accept | sharkant | ||
| May 27, 2017 at 20:16 | comment | added | ADDB | Well it makes no difference. For that let me explain piping with a few words: Command 1 | Command that works with Output 1 | Command that works with Output 2 And with loops that command handles every sub-output of the loop. | |
| May 27, 2017 at 20:08 | comment | added | sharkant | I did not know about it, but it is helpful to realize, however your for loop is on the left side of the pipe, does it make a difference ? | |
| May 27, 2017 at 20:00 | comment | added | ADDB | Yeah it pipes every time. Exactly that is, what makes it so useful. :) | |
| May 27, 2017 at 19:58 | comment | added | sharkant | when I run your program, it looked as if the for loop piped for each iteration once into the whiptail command, this seems to be similar to xargs as it also pipes not once but many times....am i wrong? | |
| May 27, 2017 at 16:01 | history | answered | ADDB | CC BY-SA 3.0 |