replace_lines_matching.md
February 27, 2020 ยท View on GitHub
replace_line_matching REGEXP STRING PATH
Replaces matching line(s) with a specified string.
It replaces whole lines!
use edit
@ Editing sshd_config
- replace_line_matching 'domain' 'domain=example.com' /etc/default/domain.cfg