Search Results

Search: Posts Made By: machomaddy
33,646
Posted By machomaddy
Count number of column in a comma delimited file
I have a comma (,) delimited file.

106232145,"medicare","medicare,medicaid",789


I would like to count the number of fields in each line.
I tried the below code

awk -F ',' '{print NF-1}'...
3,957
Posted By machomaddy
Checkout the below thread. I too had a same...
Checkout the below thread. I too had a same requirement.

https://www.unix.com/shell-programming-scripting/173994-deleting-record-file-looking-up-another-file.html
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 06:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy