[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: All true assertions in a bash find one liner? ...

Not necessarily responding to the appropriate post in this thread, so top 
posting to make some general comments:

    * Can you do it in two lines (instead of a one liner)?  Three lines?  
Whatever? If so, if you really want a one liner, develop those multiple lines 
and then put them all on one line separated by semicolons.

   * But why a one liner?  Why not make a script (put multiple lines in one 

   * In any case, I'd develop in bite size lines one at a time, and then 
either join them into one line or in a file.  And / or switch to another 
language (e.g., Perl, as someone else suggested)  Trying to develop a one 
liner like that all at once in one line is just making your life harder (and 
mine harder just to think about it ;-)

On Thursday, February 27, 2020 09:44:35 AM Albretch Mueller wrote:
> On 2/27/20, tomas@tuxteam.de <tomas@tuxteam.de> wrote:
> > Hm. I don't get it. The general form above should work. Are you
> > sure the regex isn't matching all files?
>  No, it doesn't. Try it and you will see what I mean. I tried to
> explain it all on the initial post
>  Once you include the -printf stanza find gets a bit "crazy" if you
> have also an -exec one
>  lbrtchx

Reply to: