Note that using
g
in your sed
command will do what you want for commands like docker compose some_file
or docker ...; docker ...
(or with &
or &&
but will not work as intended for a command like docker compose docker_files/some_file
. People tend to use g
as a matter of habit when it's not needed.