I have a large text file on a Linux server containing the following, for example:
123456789012345,00,0000,0000 1234567890123450,00,0000,000 12345678901b111,0,0000,0000 1234567/89011111,00,0000,00000
12345678901b111,0,0000,0000 line# 3 1234567/8011111?,00,0000,00000 line# 4
so my target is:
I would like to grep lines which is
not 15 or 16 digits only before first comma not 2 digits only before second comma not 3 or 4 digits only before third comma not 3 or 4 digits only after third comma **the line should cover ANY of the predefined conditions**
with printing line number for each line and save to another text.