rhnaeco
Technical User
- Aug 11, 2005
- 45
hi, I have a file which has been been created by a series of awk and sed commands which should have 4 columns.
unfortunately some lines have some data missing and thus only have 2 or 3 columns.
the subsequent running of a fortran script doesn't like this change and it exits.
so far i have been using GMT's minmax command to find these rogue lines in order to delete them, but it's becoming tedious.
Is there a way that awk (or sed) can sort through the files and only print the correct lines with 4 columns?
thanks in advance
unfortunately some lines have some data missing and thus only have 2 or 3 columns.
the subsequent running of a fortran script doesn't like this change and it exits.
so far i have been using GMT's minmax command to find these rogue lines in order to delete them, but it's becoming tedious.
Is there a way that awk (or sed) can sort through the files and only print the correct lines with 4 columns?
thanks in advance