Tag: snob programmers
-
shell scripting: “for i in $( … )” or “… | while read” ?
https://lists.gnu.org/archive/html/bug-coreutils/2009-09/msg00291.html The link refers to some code like the one I am working on right now: $ for i in $(seq -w $n); do …; done And the guy replying on that ml thread suggests to better write it this way: $ seq -w $n | while read i; do …; done His reason: to prevent…