Search Results

Search: Posts Made By: Tytalus
3,871
Posted By Tytalus
Think this should be what you're after: #...
Think this should be what you're after:


# cat infile
A B X
B A X
C A B X
A B D X


# awk '/A/ && /B/ && !/C/ && !/D/ {gsub("X", "Y")};{print}' infile
A B Y
B A Y
C A B X
A B D X

...
Showing results 1 to 1 of 1

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