Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 360 Bytes

replace_lines_matching.md

File metadata and controls

18 lines (11 loc) · 360 Bytes
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
See also

replace_matching
remove_line_matching