Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

FIND PATTERN IN FRONT OF LINE

sed 's/regexp/n&/g'

FIND AND REPLACE SED (Test with -e)

sed -e ‘s/# Include=/etc/zabbix/zabbix_agentd.userparams.conf/ Include=/etc/zabbix/zabbix_agentd.userparams.conf/g’ /etc/zabbix/zabbix_agentd.conf

FIND AND REPLACE SED (In Spot)

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

sed -i ‘s/# Include=/etc/zabbix/zabbix_agentd.userparams.conf/ Include=/etc/zabbix/zabbix_agentd.userparams.conf/g’ /etc/zabbix/zabbix_agentd.conf

SED – remove last four characters from string

echo “Lets remove Last Four” |sed ‘s/.{4}$//’

Sed Delete Empty Line Syntax
$ sed ‘/^$/d’ /tmp/data.txt

sed -i 's/(^upload_max_filesize = ).*/120M/' /etc/php.ini
sed -i 's/^(User|Group).*/1 asterisk/' /etc/httpd/conf/httpd.conf