I have the following code
tasks=$(cut ~/.todo/data -f3)
data consists of
1331956800 29 task 5
1361077200 28 task 3
1363554894 26 task 1
1363555119 30 baller
For some reason, I can extract the first two columns with this method but the third doesn't seem to work properly. I tried setting IFS='\n' before tasks= but it still refuses to work.
There are tabs between columns, only spaces in column 3.
I want
${tasks[0]} = "task 5"
${tasks[1]} = "task 3"
...
${tasks[3]} = "baller"
Here is the output of cut
$ cut ~/.todo/data -f3
task 5
task 3
task 1
baller