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.
:%s/.{1}$//
2.1m questions
2.1m answers
60 comments
57.0k users