複数ファイル内の特定の文字列を一括で置換
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[Linux全般]]
*概要 [#rcf19b0a]
複数のファイルで、同じ記述の誤りが特定できた場合に、下記...
*方法1 [#ufd5712a]
# grep -lr 文字列 | xargs sed -i "s/文字列A/文字列B/g"
*方法2 [#k7b82a16]
置換対象文字列:http://hogehoge.com/test01/
置換後の文字列:http://inamuu.com/test02/
置換対象ファイル:*.html
# sed -i "s/http\:\/\/hogehoge\.com\/test01\//http\:\/\/...
~
~
終了行:
[[Linux全般]]
*概要 [#rcf19b0a]
複数のファイルで、同じ記述の誤りが特定できた場合に、下記...
*方法1 [#ufd5712a]
# grep -lr 文字列 | xargs sed -i "s/文字列A/文字列B/g"
*方法2 [#k7b82a16]
置換対象文字列:http://hogehoge.com/test01/
置換後の文字列:http://inamuu.com/test02/
置換対象ファイル:*.html
# sed -i "s/http\:\/\/hogehoge\.com\/test01\//http\:\/\/...
~
~
ページ名: