igli 1176561488 learn Something specific to #bash eg "${a[@]: -10:]" or while read -r l; do ...; done < <(cmd|aslongas|yourarm) # learning these will make you l77t (not ;) TheBonsai 1176561632 forget TheBonsai 1176561638 learn Something specific to bash eg "${a[@]: -10:}" or while read -r l; do ...; done < <(cmd|aslongas|yourarm) # learning these will make you l77t (not ;) go|dfish 1190273946 forget igli 1192502774 learn Something specific to BASH eg: mkdir $(for ((i=1; i<=31; i++)); do printf "2007_08_%02d\n" $i; done))) # or: myCmd=(cmd -i "with $strange params" "$file"); while read -r l; do echo Line $((i++))": $l"; done < <("${myCmd[@]}") igli 1192503168 forget igli 1192503260 learn Something specific to BASH eg: mkdir $(for ((i=1; i<=31; i++)); do printf "2007_08_%02d\n" $i; done))) # or: myCmd=(cmd -i "with ${strange[: -10:]} params" "$file"); while read -r l; do echo Line $((i++))": $l"; done < <("${myCmd[@]}"|sed '/^#/d') igli 1192503291 forget igli 1192503315 learn Something specific to BASH eg: mkdir $(for ((i=1; i<=31; i++)); do printf "2007_08_%02d\n" $i; done))) # or: myCmd=(cmd -i "with ${strange[@]: -10:} params" "$file"); while read -r l; do echo Line $((i++))": $l"; done < <("${myCmd[@]}"|sed '/^#/d') greycat 1255720529 forget greycat 1255720545 learn http://mywiki.wooledge.org/Bashism for a (partial!) list of bash-specific features, and how to emulate them in other shells