i have a txt document that has over 3000 lines with username and passwords inside, example username,password,name,number,name,number jack,123pass,name,number,name,number steve,123password,alan,07878787877,name,number

i could do with a cleanup script to delete the lines that do not contain numbers after the username and password, so in this example above i would need to remove the lines

i would need to remove every line in the file that ends with this exactly name,number,name,number,name,number,name,number,name,number,name,number,name,number,name,number,name,number,name,number

and the username,password, will be in front of that string like so frank,mypassword,name,number,name,number,name,number,name,number,name,number,name,number,name,number,name,number,name,number,name,number

they are login details and that is why i cannot show the entire file if the line contains names and numbers apart from the username and password then the line needs to be kept. i hope this explains it better.

im thinking grep /name,number,name,number,name,number,name,number,name,number,name,number,name,number,name,number,name,number,name,number/ then remove line somehow. i am not clued up with the coding :)