dezmd , vor einem Monat Englisch What if I told you you can make a backup of a config file and edit a single line in a conf file, all with a single line of bash? sudo cp config.conf config.conf.bak.$(date +"%Y%m%d%H%M%S") && sed -i 's/^\(CONFIG_NAME\s*=\s*\).*/\1new_value/' config.conf https://lemmy.world/pictrs/image/03ed4a25-9d7f-4905-9d6b-ac341927e0ae.gif
What if I told you you can make a backup of a config file and edit a single line in a conf file, all with a single line of bash?
sudo cp config.conf config.conf.bak.$(date +"%Y%m%d%H%M%S") && sed -i 's/^\(CONFIG_NAME\s*=\s*\).*/\1new_value/' config.conf
https://lemmy.world/pictrs/image/03ed4a25-9d7f-4905-9d6b-ac341927e0ae.gif