Hi,
I wonder if anyone can answer what is probably a relatively simple thing...
I have a csv file with tens of thousands of rows and about 15 columns. For the sake of simplicity though lets pretend it looks like this....
"blah","blah","blah","rs134582","blah"
"blah","blah","blah","","blah"
"blah","blah","blah","rs76589","blah"
"blah","blah","blah","rs12749392","blah"
"blah","blah","blah","rs1234","blah"
"blah","blah","blah","","blah"
I need to remove those rows that have a blank in the 4th column only so that I am left with a file that would look like this...
"blah","blah","blah","rs134582","blah"
"blah","blah","blah","rs76589","blah"
"blah","blah","blah","rs12749392","blah"
"blah","blah","blah","rs1234","blah"
I thought maybe I could use awk to do this, but I can't seem to work it out. Just to clarify, in the real file there may be blanks in other columns, but I only want it to remove the rows with blanks in my one particular column of interest.
Can anybody help me?
I wonder if anyone can answer what is probably a relatively simple thing...
I have a csv file with tens of thousands of rows and about 15 columns. For the sake of simplicity though lets pretend it looks like this....
"blah","blah","blah","rs134582","blah"
"blah","blah","blah","","blah"
"blah","blah","blah","rs76589","blah"
"blah","blah","blah","rs12749392","blah"
"blah","blah","blah","rs1234","blah"
"blah","blah","blah","","blah"
I need to remove those rows that have a blank in the 4th column only so that I am left with a file that would look like this...
"blah","blah","blah","rs134582","blah"
"blah","blah","blah","rs76589","blah"
"blah","blah","blah","rs12749392","blah"
"blah","blah","blah","rs1234","blah"
I thought maybe I could use awk to do this, but I can't seem to work it out. Just to clarify, in the real file there may be blanks in other columns, but I only want it to remove the rows with blanks in my one particular column of interest.
Can anybody help me?