BASH: loading file to array
I have a question how to load content of text file into the array, where every member of array will present one line of the file.
First, let have file a.txt with following context: Code:
this is line1 Code:
my_list=($(<a.txt)) Code:
my_list=("$(<a.txt)") |
heh, just like busses, don't mention $IFS for months, then two come along at once.
http://www.linuxquestions.org/questi...d.php?t=505552 |
Quote:
|
All times are GMT -5. The time now is 09:02 AM. |