I need to remove part of a line in a group of files.
Example line:
TRN*1*301444/05-13-20*6549873211~
I need it to be this instead (remove the portion /05-13-20
):
TRN*1*301444*6549873211~
The forward slash up to the last asterisk need to be removed and the new line needs to be retained in the file.
/
to*
or the 8 characters following/
or anything that looks like a date? – Neil McGuigan Sep 08 '16 at 17:59sed
and regexes: http://unix.stackexchange.com/tags/sed/info and http://unix.stackexchange.com/q/2434/170373 – ilkkachu Sep 08 '16 at 18:11