SED: Difference between revisions

193 bytes added ,  6 years ago
m (Text replacement - "; Comments Total Comments on this page = {{NUMBEROFCOMMENTSPAGE}}. ----- <comments /> -----" to "{{DISQUS}}")
 
 
(3 intermediate revisions by the same user not shown)
Line 203:
*get return address header
sed '/^Reply-To:/q; /^From:/h; /./d;g;q'
 
 
 
= One-Liners =
 
Changing 1st parameter values
sed 's/2M/200M/' php.ini > php.ini.new
 
= TEE =
 
Using tee to append to config file
echo "net.ipv4.ip_forward = 1" | tee -a /etc/sysctl.conf