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


Groups > linux.debian.user > #180659

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

From Richard Owlett <rowlett@cloud85.net>
Newsgroups linux.debian.user
Subject Re: Using -prune option of find to ignore hidden directories
Date 2017-05-03 19:40 +0200
Message-ID <tD6pP-8rd-15@gated-at.bofh.it> (permalink)
References <tD3UZ-6KP-11@gated-at.bofh.it> <tD4em-76U-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 05/03/2017 10:13 AM, rhkramer@gmail.com wrote:
> On Wednesday, May 03, 2017 10:57:09 AM Richard Owlett wrote:
>> The man page for find confuses me.
>> Looking for explanatory material I found and tried to follow examples in
>> http://mywiki.wooledge.org/UsingFind#A-prune .
>>
>> I tried
>>    find /home/richard \( -type d -name .* -prune \) -o -atime -42 -print
>> and
>>    find /home/richard \( -type d -name .* -prune \) -atime -42 -print
>> unsuccessfully.
>>
>> Each got an "find: paths must precede expression: .." error
>>
>> HOW?
>
> Can't answer your question off the top of my head, but, when I run into
> problems like this, I try to run subsets of the command to try to narrow down
> the problem.  For example, I might first try find /home/richard--see if it works
> (provides any output) and what that output looks like, then try adding
> switches or other parts of the command one at a time.
>

*GRIN*
Been using that basic procedure since mid 1950's [when volume of single 
flip-flop could be measured in cubic inches ;]

I had spent more than an hour:
  1. exploring find (with and without the -atime option)
  2. attempting to add -prune to the mix
That was when a series of links led to mywiki.wooledge.org .
An unknown amount of non-productive effort led to my post.

I thought I had narrowed the problem to -prune as that seemed the only 
thing in common to failures was -prune.
The actual globing problem was hidden in the noise.
MEA CULPA: globs have bitten me before :{

Thanks all.

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