Hi
I am having 2 fields and if f1=f2 i wanna print that line
eg
1 2
1 3
1 9
2 2
3 5
9 9
In the abov eg. the highlighted lines shud be printed
2 2
9 9
Thanking u
Hi
I am having 2 fields and if f1=f2 i wanna print that line
eg
1 2
1 3
1 9
2 2
3 5
9 9
In the abov eg. the highlighted lines shud be printed
2 2
9 9
Thanking u
awk '$1 == $2' file1
Hi
awk function s not working
An error message occurs
"awk : ^
awk : ^ syntax error"
It's just about the simplest piece of awk there is.
Did you use double quotes " by mistake, instead of single quotes ' ?
Please show the exact command you ran.