shell 怎样去掉文件中指定的单引号

2025-05-21 18:32:31
推荐回答(1个)
回答(1):

sed -i "s/'//" file
删掉所有单引号
sed -i "/abc/s/'//" file
删掉有abc行的单引号