Search Results

Search: Posts Made By: msonoth
1,220
Posted By RudiC
Orawk '{print $0, "\t"($2==$4?"":"no ") "match"}'...
Orawk '{print $0, "\t"($2==$4?"":"no ") "match"}' file3
1,220
Posted By zaxxon
Is that homework? $ awk '$2 == $4 {print...
Is that homework?


$ awk '$2 == $4 {print $0 "\tmatch"; next} {print $0 "\tno match"}' infile
1 yes a no no match
2 no b no match
3 yes c ...
31,563
Posted By Scrutinizer
You mean something like this? echo $(grep -E...
You mean something like this?
echo $(grep -E 'A|B|C|D' *"test"*)


---
On Solaris use /usr/xpg4/bin/grep
Showing results 1 to 3 of 3

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