I have a problem with filter rows with empty row in 4 column.
Input:
1242 2021-11-22 Text 5.0
1242 2021-11-22 Text
1242 2021-11-22 Text 5.0
1242 2021-11-22 Text 5.0
4095 2021-11-22 Text
4095 2021-11-22 Text 5.0
4095 2021-11-22 Text
4095 2021-11-22 Text 5.0
4095 2021-11-22 Text
4095 2021-11-22 Text 5.0
and I want output:
1242 2021-11-22 Text 5.0
1242 2021-11-22 Text 5.0
1242 2021-11-22 Text 5.0
4095 2021-11-22 Text 5.0
4095 2021-11-22 Text 5.0
4095 2021-11-22 Text 5.0
The size of a file is 2.0Gb and number of lines is ~45m.
I have tried these, but none of it worked - it returns empty or same file:
awk -F: '{if($4 != "") print}'
awk -F '$4 != ""'
awk -F , '$4 != "\"\"" {print}'
Texteverywhere. If your delimiter is tab then setting your delimiter to:or,is obviously not going to work.