mina86, your first code works fine
Code:
sed -i.bkup -e 's/|[0-9][0-9]*$//g' filename
I just want to delete “|<number>” not the entire line.
syg00, adding your suggestion does not work
pan64, your suggestion comes with an error
Code:
sed: -e expression #1, char 19: unterminated `s' command
thanks everyone for the time and efforts. Appreciate your help