var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
ホームディレクトリの下にあるすべてのファイルで、「google analytics code」を検索して置き換えたいと考えています。
php eclips エディターでは、すべての発生が表示されますが、一度にすべてを置き換えることはできません。そこで、シェルスクリプトを使おうと考えています。
/home/project/news4u/web は私の腐ったディレクトリであり、sed
それを達成するためのコマンドの使用方法です。
私は試したsed s/'var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");'/'google analytics' *