Checking if the end of each line in the file is ending with a letter followed by 8 digits number
Clash Royale CLAN TAG #URR8PPP up vote 2 down vote favorite I have a problem with checking if each line of my files is ending with a letter (A-Z (always capital)) followed by exatcly 8 digit numbers (doesnt matter which one). So I have a number of files and content of each file looks like this: Nc1nc2cc3OCCOc3cc2s1 A10000001 CCN(CC)C1CCN(Cc2cc(I)cc(I)c2O)CC1 B100000002 CCN(CC)C1CCN(Cc2cc(cc(I)c2O)C#CCO)CC1 C10000003 There is always a space between this "string" and letter wtih numbers. So, in this example B100000002 there are 9 digits after letter. Since I done most of the things manually I would like to check if in my files there are errors. Can anybody help me with some bash command so I can see which lines have different, incorrect pattern? Thanks! bash text-processing share | improve this question asked May 14 at 14:30 sergio 56 5 add a comment  | up vote 2 down vote favorite I have a problem with che...