lhunath 1269436471 learn Read lines from a file into an array in bash<4: IFS=$'\n' read -d '' -r -a lines < file lhunath 1308819760 forget lhunath 1308819898 learn Read lines from a file (or stdin) into an array: ## Bash <4: IFS=$'\n' read -d '' -r -a lines < file ## Bash 4: mapfile -t lines < file lhunath 1393258570 forget lhunath 1393258618 learn Read lines from a file (or stdin) into an array: ## Bash 4: mapfile -t lines < file; ## Bash <4: while IFS= read -r lines[l++]; do :; done < file lhunath 1403926521 forget lhunath 1403926530 learn #redirect whileread izabera 1521731935 forget izabera 1521731943 learn #redirect faq 1 izabera 1521731978 forget izabera 1521731982 learn #redirect faq1