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


Groups > linux.debian.user > #180650

Re: Using -prune option of find to ignore hidden directories

From rhkramer@gmail.com
Newsgroups linux.debian.user
Subject Re: Using -prune option of find to ignore hidden directories
Date 2017-05-03 18:10 +0200
Message-ID <tD50K-7GP-39@gated-at.bofh.it> (permalink)
References <tD3UZ-6KP-11@gated-at.bofh.it> <tD4em-76U-21@gated-at.bofh.it> <tD4Hn-7iw-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wednesday, May 03, 2017 11:44:31 AM Greg Wooledge wrote:
> On Wed, May 03, 2017 at 11:13:46AM -0400, rhkramer@gmail.com wrote:
> > On Wednesday, May 03, 2017 10:57:09 AM Richard Owlett wrote:
> > >    find /home/richard \( -type d -name .* -prune \) -o -atime -42
> > >    -print
> > 
> > Maybe next I'd try:
> > 
> > find /home/richard -type d -name .* (without the escaped parens)
> 
> No, the problem is the unquoted .* glob.  That will expand to an
> indeterminate number of filename arguments, and almost certainly will
> not do what he wants.
> 
> Always quote glob patterns unless you actually want the shell to expand
> them.  In this case, he wants find to receive it without expansion.

Not the OP (just one of the responders), but thanks, I hope I can let that 
sink into my subconscious (or somewhere ;-) and remember that in the future.

Oh, but in case it wasn't very clear, my intension wasn't so much a specific 
recommendation of what might work, but instead, a recommendation on a 
methodology to find the problem one's self.

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


Thread

Using -prune option of find to ignore hidden directories Richard Owlett <rowlett@cloud85.net> - 2017-05-03 17:00 +0200
  Re: Using -prune option of find to ignore hidden directories "Thomas Schmitt" <scdbackup@gmx.net> - 2017-05-03 17:20 +0200
  Re: Using -prune option of find to ignore hidden directories rhkramer@gmail.com - 2017-05-03 17:20 +0200
    Re: Using -prune option of find to ignore hidden directories Greg Wooledge <wooledg@eeg.ccf.org> - 2017-05-03 17:50 +0200
      Re: Using -prune option of find to ignore hidden directories rhkramer@gmail.com - 2017-05-03 18:10 +0200
        Re: Using -prune option of find to ignore hidden directories Greg Wooledge <wooledg@eeg.ccf.org> - 2017-05-03 18:20 +0200
          Re: Using -prune option of find to ignore hidden directories rhkramer@gmail.com - 2017-05-03 18:30 +0200
            Re: Using -prune option of find to ignore hidden directories Greg Wooledge <wooledg@eeg.ccf.org> - 2017-05-03 19:40 +0200
      Re: Using -prune option of find to ignore hidden directories <tomas@tuxteam.de> - 2017-05-03 22:30 +0200
        Re: Using -prune option of find to ignore hidden directories Greg Wooledge <wooledg@eeg.ccf.org> - 2017-05-03 22:40 +0200
          Re: Using -prune option of find to ignore hidden directories <tomas@tuxteam.de> - 2017-05-03 23:20 +0200
        Re: Using -prune option of find to ignore hidden directories rhkramer@gmail.com - 2017-05-04 04:30 +0200
          Re: Using -prune option of find to ignore hidden directories rhkramer@gmail.com - 2017-05-04 04:50 +0200
            Re: Using -prune option of find to ignore hidden directories Bob McGowan <ramjr0915@gmail.com> - 2017-05-04 08:00 +0200
              Re: Using -prune option of find to ignore hidden directories <tomas@tuxteam.de> - 2017-05-04 09:30 +0200
                Re: Using -prune option of find to ignore hidden directories Nicolas George <george@nsup.org> - 2017-05-04 09:40 +0200
                Re: Using -prune option of find to ignore hidden directories tomas@tuxteam.de - 2017-05-04 10:00 +0200
                Re: Using -prune option of find to ignore hidden directories Greg Wooledge <wooledg@eeg.ccf.org> - 2017-05-04 14:10 +0200
                Re: Using -prune option of find to ignore hidden directories Nicolas George <george@nsup.org> - 2017-05-04 14:30 +0200
                Re: Using -prune option of find to ignore hidden directories Greg Wooledge <wooledg@eeg.ccf.org> - 2017-05-04 14:40 +0200
              Re: Using -prune option of find to ignore hidden directories rhkramer@gmail.com - 2017-05-04 13:40 +0200
    Re: Using -prune option of find to ignore hidden directories Richard Owlett <rowlett@cloud85.net> - 2017-05-03 19:40 +0200
      Addendum Re: Using -prune option of find to ignore hidden directories Richard Owlett <rowlett@cloud85.net> - 2017-05-03 20:00 +0200
      Re: Using -prune option of find to ignore hidden directories rhkramer@gmail.com - 2017-05-04 04:20 +0200
    Re: Using -prune option of find to ignore hidden directories David <bouncingcats@gmail.com> - 2017-05-04 02:00 +0200
      Re: Using -prune option of find to ignore hidden directories David <bouncingcats@gmail.com> - 2017-05-04 02:10 +0200

csiph-web