I am very new to shell programming.
I have a file named quaternary_splitted.csv on macOS.
Every line has 4 words. I want to take every word from each line and assign it to a variable. Please suggest some kind of awk command in for loop
The value of each of those 4 variable I want to use further in my shell program.
Thanks for the help. Few of the lines from the file:
Ta Cr Mo W
Nb Cr Mo W
Nb Ta Mo W
Nb Ta Cr W
Nb Ta Cr Mo
awk '{print $3}' filewill print the 3rd field. Is that what you mean, or do you want to do this in the shell?cut(1)wheel withawk, it makes things harder to read, and some of us actually have to maintain our terrible shell scripts...