Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #267250

Re: find and it uncommon syntax - grrrrrrrrr

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: find and it uncommon syntax - grrrrrrrrr
Date 2024-02-10 22:10 +0100
Message-ID <I62LL-9hYW-1@gated-at.bofh.it> (permalink)
References <I62sp-9hD0-5@gated-at.bofh.it> <I62C5-9hGz-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Feb 10, 2024 at 02:58:24PM -0600, Nicholas Geovanis wrote:
> On Sat, Feb 10, 2024, 2:46 PM gene heskett <gheskett@shentel.net> wrote:
> 
> > Greetings;
> >
> > I have misplaced file someplace in /home/gene.
> > its name is bpim5*shelf.scad
> >
> 
> Assuming that you are searching in the current working directory:
>  find bpim*  -print | grep 'shelf.scad'

That's not correct.  The argument(s) that immediately follow find should
be the starting point(s) where it will begin its search.  Normally these
would be directories, especially the "." directory, which is actually
the default in GNU find (but not a default in POSIX find).

This command would only work if the file Gene's looking for happens to
be in his home directory, *or*, if the file he's looking for happens to
be underneath a *directory* whose name matches the bpim* glob.  This is
possible, but I wouldn't count on it.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

find and it uncommon syntax - grrrrrrrrr gene heskett <gheskett@shentel.net> - 2024-02-10 21:50 +0100
  Re: find and it uncommon syntax - grrrrrrrrr Nicholas Geovanis <nickgeovanis@gmail.com> - 2024-02-10 22:00 +0100
    Re: find and it uncommon syntax - grrrrrrrrr Greg Wooledge <greg@wooledge.org> - 2024-02-10 22:10 +0100
      Re: find and it uncommon syntax - grrrrrrrrr gene heskett <gheskett@shentel.net> - 2024-02-11 01:30 +0100
  Re: find and it uncommon syntax - grrrrrrrrr Greg Wooledge <greg@wooledge.org> - 2024-02-10 22:00 +0100
    Re: find and it uncommon syntax - grrrrrrrrr gene heskett <gheskett@shentel.net> - 2024-02-11 00:10 +0100
      Re: find and it uncommon syntax - grrrrrrrrr Andy Smith <andy@strugglers.net> - 2024-02-11 00:30 +0100
  Re: find and it uncommon syntax - grrrrrrrrr Andy Smith <andy@strugglers.net> - 2024-02-11 00:30 +0100

csiph-web