Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试sed -i '' 's/,\([^ '\''"]\)/, \1/g' app/models/campaign.rb从我的 ruby 程序中传递命令,但我无法正确获取字符串(尤其是双引号和反斜杠部分)。有谁知道如何做到这一点?
sed -i '' 's/,\([^ '\''"]\)/, \1/g' app/models/campaign.rb