I'm trying to remove a trailing " from all lines in a CSV. I am using RedHat Linux.
I'm able to do it successfully in VIM doing %s/"$//g
However, doing sed -e 's/"$//g' does not work (both in the terminal, and when I have it as part of a bash script). A similar call that I make to remove LEADING " from all the lines, sed -e 's/^"//g' DOES work, so I am extremely confused! Especially since it works in VIM.
Any suggestions?
Thanks!
sed 's/" *$//'