sed

Run replacements based on regular expressions. Replace the first occurrence…

sed

Run replacements based on regular expressions.

sed 's/{{find}}/{{replace}}/' {{filename}}

sed -r 's/{{regex}}/{{replace}}/g' {{filename}}

sed -i 's/{{find}}/{{replace}}/g' {{filename}}

sed '/{{line_pattern}}/s/{{find}}/{{replace}}/' {{filename}}

sed -e 's/{{find}}/{{replace}}/' -e 's/{{find}}/{{replace}}/' {{filename}}

sed 's#{{find}}#{{replace}}#' {{filename}}

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← security-checker semver →