Forum: Cfengine Help Subject: Re: Edit selected files Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,17747,17754#msg-17754
Beto, your approach to file select looks bit strange. It should be like follows: files: any:: "$(HomeDir[$(HomeUsr)][5])" edit_line => umask_update, edit_defaults => no_edit_backup, file_select => by_name("\..*"); } body file_select by_name(leaf,path) { file_types => { "plain" }; leaf_name => { "$(leaf)" }; file_result => "file_types.path_name.leaf_name"; } If you mean to recurse it into .* subdirs (e.g. .ssh), you either need to collect a list of such subdirs, or use depth_search. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine