Skip to main content
6 events
when toggle format what by license comment
Sep 5, 2015 at 9:30 comment added wvxvw Well, the thing Dan suggested will match files like /etc/ant.conf, /etc/aliases.db and so on, while what I am suggesting will only match /etc/aliases for example (i.e. if there is an extension, then it won't match).
Sep 5, 2015 at 9:17 vote accept Riccardo
Sep 5, 2015 at 9:17 comment added Riccardo @wvxvw: I tried your solution but do not seems to work as expected. I tried the approach proposed by Dan and it works better also with my change. I also added some exceptions using a similar string.
Sep 5, 2015 at 8:14 comment added wvxvw Maybe to avoid conflicts with files with known extensions something like this would be better: "/etc/.*/[^\.]+$".
Sep 4, 2015 at 22:33 comment added Riccardo Thanks for your helpful suggestion. Is there a way to apply this rule to all the config files? Should I replace "/etc/.*" with "/.*" ?
Sep 4, 2015 at 22:15 history answered Dan CC BY-SA 3.0