find and replace
sed s/mysql/MySQL/2 snort.conf > snort2.conf
This command affects only the second occurrence of mysql.
sed s/mysql/MySQL/2 snort.conf > snort2.conf
This command affects only the second occurrence of mysql.
kali >sed s/mysql/MySQL/g /etc/snort/snort.conf > snort2.conf
find and replace all of mysql
If you wanted to replace only the first occurrence of the term mysql, you would leave out the trailing g command.
find and replace all of mysql
If you wanted to replace only the first occurrence of the term mysql, you would leave out the trailing g command.