I have a csv file, and I want to delete lines whose third field is longer that 1if their 12th character in lengthis not ;.
So, for example, my file looks like this:
2266308;A;B;dfsgsfdg
2266309;A;BJHSADFK;gfsdg
2266310;A;B;dfg
and I want:
2266308;A;B;dfsgsfdg
2266310;A;B;dfg
How can I remove a line if the 12th character in it is NOT ; with sed? =)