Search Results

Search: Posts Made By: agama
3,075
Posted By agama
I think the problem is that you don't need the $...
I think the problem is that you don't need the $ with the -v assignments to hard assign them values. Try it this way:

awk -v col1=3 -v col2=13 '{ if($(col1) != "-" && $(col2) != "-") { print; }}'...
3,075
Posted By agama
It appears that you are trying to take COL1 and...
It appears that you are trying to take COL1 and COL2 from the environment; I don't see them defined in your programme, so that was my assumption. Im not sure that is possible. I don't usually use...
Showing results 1 to 2 of 2

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