Please re-read
the forum rules you agreed to when you joined this forum. Continued refusal to follow the rules may lead to be placed in read-only mode or in being banned from the UNIX & Linux Forums.
If values other than
JE are at the start of records that need to be removed, how are those records identified?
Do you always want to remove every line that starts with a
J?
Do you always want to remove every line that starts with an uppercase alphabetic character?
Do you always want to remove every line that starts with a character that is not a numeric character?
Do you always want to remove the last line in every file you process?
Do you always want to remove every line that contains exactly two commas?
What operating system are you using?
What shell are you using?
What have you tried to solve this problem on your own?