I have a list of lines with numbers. Need to exclude from it all lines starting with 373.
For example my list is:
37322433151
37323175491
19376717186
79684480273
97246000252
37323175491
37323175491
40745108277
If i do cat ... | egrep '^[^373].*', then it excludes lines that start from 3 or 7, the output is
19376717186
97246000252
40745108277
Even if expression is ^[^(373)].*
I need too exclude only if line starts with 373. Could anyone tell me what expression should be used ?
I also tried '^(?!373).*
 
     
     
    