Search Results

Search: Posts Made By: nmoore2843
1,580
Posted By nmoore2843
Thank you! That was exactly what I needed....
Thank you!

That was exactly what I needed. I'd been trying to figure that out for hours!
1,580
Posted By nmoore2843
Thanks for the reply, Yoda. But the $3 variable...
Thanks for the reply, Yoda. But the $3 variable was working okay. I need to get use a variable for the second field instead of /Blue/.

Something like this?

countvar=`awk -F, '$2 ~ /$color/ &&...
1,580
Posted By nmoore2843
How to count lines of CSV file where 2 fields match variables?
I'm trying to use awk to count the occurrences of two matching fields of a CSV file.

For instance, for data that looks like this...

Joe,Blue,Yes,No,High
Mike,Blue,Yes,Yes,Low...
Showing results 1 to 3 of 3

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