SED: Difference between revisions

193 bytes added ,  6 years ago
m (Protected "SED" ([Edit=Allow only logged in users] (indefinite) [Move=Allow only logged in users] (indefinite) [Delete=Allow only logged in users] (indefinite)))
 
(One intermediate revision 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