sed to remove single and double quotes at the same time

后端 未结 7 2265
忘了有多久
忘了有多久 2020-12-28 20:38

I am trying to remove single quotes and double quotes from a file. Can I do it in a single sed command?

I am trying :

sed \'s/\\\"//g;s/\\\'//g\' tx         


        
7条回答
  •  死守一世寂寞
    2020-12-28 21:12

    To remove single quotes, simply use double quotes for the regex in sed:

    sed -e "s/'//g" ./new_file.csv

提交回复
热议问题