Timeline for Pipe the result of a cut command to curl
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 16, 2016 at 16:44 | comment | added | reinierpost |
I'm just commenting on why xargs may be a good habit to get into. For this particular case it doesn't seem to make much of a difference (unless the input is extremely long, command substitution might have a limit there).
|
|
| Nov 16, 2016 at 13:23 | comment | added | Dmitry Grigoryev | @reinierpost URLs don't have funny characters to begin with. | |
| Nov 16, 2016 at 8:58 | comment | added | reinierpost |
xargs is better than command substitution in case your input has funny characters - it has options to deal with them, e.g. I like to provide -d'\n'.
|
|
| Nov 16, 2016 at 8:54 | comment | added | reinierpost | xargs is very widely available. | |
| Nov 16, 2016 at 5:34 | comment | added | Wildcard | @wdowling, it's portable but still a bad habit to get into. See the last paragraph of this answer. | |
| Nov 16, 2016 at 5:27 | review | Low quality posts | |||
| Nov 16, 2016 at 6:08 | |||||
| Nov 16, 2016 at 5:20 | comment | added | Ipor Sircer | utfg: developer.apple.com/legacy/library/documentation/Darwin/… | |
| Nov 16, 2016 at 5:16 | comment | added | wdowling | This answer works just as well as the other answer and i like that the flow doesn't change. My only question is, is xargs supported cross platform? I routinely go back and forth between my linux box and a mac, so I always want to make sure i don't get in the habit of doing something that I can't do on one machine. Thanks for your quick response! | |
| Nov 16, 2016 at 5:10 | history | answered | Ipor Sircer | CC BY-SA 3.0 |