sed -i ” ‘s/test/hello/’とsed -i ” ‘s/test/hello/g’の違いは、前者が行にある初めて一致したtestをhelloに置換するのに対して、後者は行に存在する全てのtestをhelloに置換する

©︎ 2025-2026 todo