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.
1 つの文字列を置き換える必要がある別のプログラムで作成された、Xcode に頻繁にドロップするファイルがあります。スクリプトとしてビルドフェーズの一部にしたいだけです。sed like で find を使ってみた
find . -type f -exec sed -i 's/onclick="js(setPanoName(/onloaded="js(setPanoName(/g' {} \;
効果なし。私はそれが本当に近いことを知っています。どうしたの?
コマンドをに変更しました
sed -i '' 's/onclick="js(setPanoName(/onloaded="js(setPanoName(/g' *.xml;
そして、それは今動作します。