6

Help with find/replace in vi

view full story
linux-howto

http://www.linuxquestions.org – Hello, I'm in the middle of a data migration project and I have a text file where the data in one of the fields contains a "\" at the end of each line. I know how to do a find and replace on ALL backslashes using something like this: Code: :%s/\\//g The above example would replace all backslashes with nothing, effectively "removing" them. Does anyone know how I can apply a similar function that only removes the backslashes that exist at the end of a line? Thanks! Swill (HowTos)