[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cat inside find utility to start search directory list in a file
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: cat inside find utility to start search directory list in a file |
Date: |
Thu, 2 Sep 2021 15:57:47 +0200 |
oh mysuxx i didnt know and didnt test
sorry, ..
On Thu, Sep 2, 2021, 15:51 Greg Wooledge <greg@wooledge.org> wrote:
> On Thu, Sep 02, 2021 at 03:03:14PM +0200, Alex fxmbsw7 Ratchev wrote:
> > that -- is kind of base as -a --arg style args into unix sources, to
> > separate em together
> >
> > On Thu, Sep 2, 2021, 15:02 Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>
> wrote:
> >
> > > another option instead of cpu intense <pe> the simpler -- argument may
> be
> > > passed
> > >
> > > p=--path
> > > find -- $p ( or "$p" if content of $p is more complicated )
>
> This doesn't work in find, unfortunately. It's a special case.
>
> unicorn:~$ touch ./-foo
> unicorn:~$ find -- -foo -print
> find: unknown predicate `-foo'
> unicorn:~$ find -foo -print
> find: unknown predicate `-foo'
>
> find doesn't provide any way to designate "the follow arguments are
> all pathnames, even if they start with -". Thus, the ./- workaround.
>
>