Hello, I am new to awk and I am having a hard time figuring out how do get this to work:
I want to process a csv file and write each column value out to a file, so i wrote this script:
awk'{
for(i=1;i<NF;i++){
ct[$1]+=1
}
for(val in ct){
print val
}
}' FS="," < mydata.csv
Now that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.