I'm trying to extract some data from a CSV file, and the command line that works under linux is not working with mawk for windows.
Using WSL, the following command works as expected:
mawk -F, '$16 == "Good" {print $4}' < *GOL*_approval.txt
However, in powershell, the following command gives completely different results:
mawk -F',' '$16 == "Good" {print $4}' *GOL*_approval.txt
I think it might be a quoting option, but I've tried everything I can think of.