I have a file:
12345a 123456b 1234567c 12345678d 123456789e
How do I delete the last character in each line.
And the file will be
12345 123456 1234567 12345678 123456789
You could use :%s/.\{1}$//
to delete 1 character off the end of each line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With