Uncomment Config
1 minute read •
To free a configuration file from comments and empty lines, you can use the sed command.
sed -e '/^[;#].*$/d' -e '/^$/d' /etc/config_file.conf
1 minute read •
To free a configuration file from comments and empty lines, you can use the sed command.
sed -e '/^[;#].*$/d' -e '/^$/d' /etc/config_file.conf