FG

Is there a program/script to modify .conf files?

Fresh3 days ago
Mar 15, 20264441 views
Confidence Score0%
0%

Problem

I want to modify a file like from the shell or a script. But the idea is that I can add a line to a section and it check if the section is defined, (add the definition if not), the property is defined, let it undefine (erase the line), (and delete the section header if there is no property defined)…

Error Output

# GDM configuration storage
[xdmcp]
[debug]
[daemon]
AutomaticLoginEnable=true;
AutomaticLogin=username;

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Is there a program/script to modify .conf files?

Low Risk

Augeas is a: A command line tool to manipulate configuration from the shell (and shell scripts). (among other things) It uses lenses to transform every file to xml, give special tools to edit them, and use the lenses to write the file back in native…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment