GNU find allows the use of different regex formats via the -regextype
option, but as far as I can tell I have to type out -regextype <whatever>
every single time which is onerous.
If one wants a different flavor of regex, chances are that one always wants it rather than switching the type used with every command. The ideal would be to set the preferred regex flavor via a preference file (~/.find_profile
) or environment variable ($FIND_OPTS
), but I haven't found any indication that this is possible.
How can I set a regextype
permanently?