Re: Help with --regex in locate
On Tue 03 Dec 2019 at 08:07:16 -0500, rhkramer@gmail.com wrote:
> On Tuesday, December 03, 2019 07:16:22 AM Andrei POPESCU wrote:
> > With 'find' instead of 'locate'.
> >
> > find dir_with_repos -type d -name .git
> >
> > or
> >
> > find dir_with_repos -type d -name "*.git"
> >
> > if you also have git bare clones ('-name' expects a shell pattern).
>
> It took me a minute (well, a trial) to realize that dir_with_repos is a
> metaname (right word?). I prefer a syntax like:
>
> find <dir_with_repos> -type d -name .git
I prefer that syntax too but many users (particularly new ones) end up
typing the angle brackets, which, of course, leads to a failed command.
A second mail is then needed to clear up the confusion. I've taken to
doing what Andrei does or giving an instruction as to what to type.
--
Brian.
Reply to: