sed:change:change_only_for_lines_which_contain_a_specific_string
This is an old revision of the document!
SED - Change - Change only for lines which contain a specific string
Substitute “foo” with “bar” ONLY for lines which contain “baz”.
sed '/baz/s/foo/bar/g'
sed/change/change_only_for_lines_which_contain_a_specific_string.1597579498.txt.gz · Last modified: 2020/08/16 12:04 by 192.168.1.1