So basically I have a .txt file in this format, USER:EMAIL:PHONEbut some lines only have USER:EMAILI want to extract only the lines containing 3 fields, example USER:EMAIL:PHONE
Awk / bash Keep line containg only 3 fields
text processing;awk;grep;gawk;uniq
This will help:awk -F':' 'NF==3{print}{}' file