Using the following script to access CSV items.
#!/bin/bash
awk -F "|" 'NR > 0 {print $1}' UserAgents.csv
When running the script I am getting the correct output, i.e. the entire set of values in the first 'column' of the CSV are printed to the terminal. What I would like to add is to read these items one by one and perform some operation on them like concatenate it with a string, and then output them (to file, pipe, or terminal) one by one.
{print $1}is getting executed per item,one by one. So why not do the action there, tryprint "hello there " $1Not putting as an answer, because i feel there might be something else in the problemNR > 0- if that is to ignore blank lines it should beNF > 0