I'm looking for someone who can think in sed. Basically, I need the trailing characters on every line in a file to be deleted. These characters are all in capitals, and always follow a number, but they often vary in number
For instance, on the line:
2006_10_9_p20_TALK
I'd want to remove the _TALK. And on the line
2006_10_9_p119_CRITICS
I'd want to remove the _CRITICS. I'm reasonably good with sed basics, but no guru. Any suggestions?