ormaaj 1333166206 learn http://wiki.bash-hackers.org/commands/builtin/mapfile lhunath 1403926603 forget lhunath 1403926692 learn Read lines from a file (or stdin) into an array: mapfile -t lines < file # in bash < 4, use: while IFS= read -r lines[l++]; do :; done < file lhunath 1403926699 forget lhunath 1403926715 learn Read lines from a file (or stdin) into an array: mapfile -t lines < file # in bash < 4, use: while IFS= read -r lines[l++]; do :; done < file # See http://wiki.bash-hackers.org/commands/builtin/mapfile geirha 1430169311 forget geirha 1430169316 learn Read lines from a file (or stdin) into an array: mapfile -t lines < file # in bash < 4, use: while IFS= read -r line; do lines[i++]=$line; done < file # See http://wiki.bash-hackers.org/commands/builtin/mapfile greycat 1493824232 forget greycat 1493824234 learn Read lines from a file/stream into an array: mapfile -t arrayname < file; mapfile -t arrayname < <(some cmd); # In bash < 4, use a loop; see FAQ 5 or http://wiki.bash-hackers.org/commands/builtin/mapfile greycat 1493825341 forget greycat 1493825360 learn Read lines from a file/stream into an array: mapfile -t arrayname < file OR mapfile -t arrayname < <(some cmd); # In bash < 4, use a loop; see FAQ 5 or http://wiki.bash-hackers.org/commands/builtin/mapfile