I have a text file that looks like this -
1 29 12
1 22 17
1 20 43
1 48 30
1 3 0
1 21 25
1 18 9
1 14 1
1 44 45
1 52 26
1 NaN 27
1 13 46
1 5 37
1 34 23
1 39 40
whose columns I want to store into different array variables. I have used the following command -
#!/bin/csh
set Logfile=$proj_path/data/individual/AAR"$subj"/activation/trialWise/"AAR"$subj"_PseudoOrder.txt"
set acc_full= (awk -F' ' '{print $1}' "$Logfile"
)
set stim1= (awk -F' ' '{print $2}' "$Logfile"
)
set stim2= (awk -F' ' '{print $3}' "$Logfile"
)
The problem is that the 3rd awk command only stores the last number in the 3rd column.