[perlコードサンプル]簡単なファイルの内容置換
perl -pi -e 's/git_branch: "master"/git_branch: "image-flux"/g' group_vars/all
動作
@group_vars/all
git_branch: "master"
↓↓↓ @group_vars/all
git_branch: "image-flux"
perl -pi -e 's/git_branch: "master"/git_branch: "image-flux"/g' group_vars/all
@group_vars/all
git_branch: "master"
↓↓↓ @group_vars/all
git_branch: "image-flux"