Quote:
Originally Posted by jisha
hi,
i have a file of the below format:
WA| 3|52|Waste |
PW| 3|53|Promotion Waste |
BR| 3|54|Breakage |
TH| 3|55|Theft |
IC| 3|56|Insurance Claim |
I want to replace the last delimiter | by using sed command ...can u please help me witht this
Thanks in advance
Js
|
Replace the last delimiter with what ? Or are you looking to remove it altogether.
Code:
sed -e "s/\(.*\)|/\1/g" input.txt