[augeas-devel] Specifying file name and lens

Alan Evans alanwevans at gmail.com
Thu Jun 14 02:23:48 UTC 2012


There's a good set of instructions at
http://augeas.net/page/Loading_specific_files.  What you're looking
for is specifically in the "Loading even less" section.

augtool> set /augeas/load/Fstab/incl "/etc/fstab"

I do this a lot for XML files, java properties files and shellvars style files.

Regards,
-Alan

On Wed, Jun 13, 2012 at 9:55 PM, Tom Limoncelli <tal at whatexit.org> wrote:
> Sometimes I need to use augeas on a file that is not named as the lens
> expects.  For example for debugging or because my code needs to edit a file
> that is not "live" yet.
>
> Is there a way to specify "load file X using lens Y  and disregard the regex
> that says this is wrong"?
>
> Tom
>
>
>
> --
> http://EverythingSysadmin.com  -- my blog
> http://www.TomOnTime.com -- my videos
>
> _______________________________________________
> augeas-devel mailing list
> augeas-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/augeas-devel




More information about the augeas-devel mailing list