Roozo
1
the pattern I are looking for is only on the 5th column
file :
1 23 5454 tag 123
2 23 5454 tag. 123
3 24 5454 tag_munti 8763
4 23 5454 tag 123
5 23 5454 tag 12345
6 23 5454 tag 876345
need the exact pattern ....
Im using the below command:
awk -F, '$5 ~ /^123$|^8763$/' file
But it is not working ...
why do you use "," field separator when your file doesnt have it ?
Fundix
3
By -F, you are telling awk that the field separator is , and am not seeing any comma in your file .
If your field separator is space, you better run :
awk -F" " ...
You have provided field separator as , in the command. Just remove -F, and your command would work. Or replace -F, with -F" "