Search Results

Search: Posts Made By: Don Cragun
1,610
Posted By Don Cragun
I'm very happy that you got this to work for you....
I'm very happy that you got this to work for you.

But, please stop trying to hide the logic in your code! Make it obvious. Change:
$0 ~ vkeyIn, $0 ~ vkeyOut { WRK = WRK $0; next; }END{

$0 =...
1,610
Posted By Don Cragun
Did you figure out what needs to be done based on...
Did you figure out what needs to be done based on what RudiC suggested, or do you still need help completing it?
1,610
Posted By Don Cragun
You still have 2 invocations of awk when you only...
You still have 2 invocations of awk when you only need 1 and you still have too many braces in your 2nd awk script. Try changing:
awk -v vkeyIn="$keyIn" -v vkeyOut="$keyOut" ' $0 ~ vkeyIn, $0 ~...
Showing results 1 to 3 of 3

 

Featured Tech Videos

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