我一直在使用sep尝试这个,基本上我有一个文本文件,其中包含相同的行,例如:
目前我已经能够分离引用的信息。
如何继续?建议?
4444 username "some information" "someotherinformation" "even more information"
我需要将引号内的空格替换为下划线,使其看起来像这样
4444 username "some_information" "someotherinformation" "even_more_information"
目前我已经能够分离引用的信息。
sed 's/"\([^"]*\)"/_/g' myfile.txt
如何继续?建议?