Am Thu, 02 Apr 2015 09:43:45 -0400 schrieb Charlie Roberts:
> I am running bash in Cygwin on a PC.
>
> I am trying to find which directories (which are within a directory that
> only contains directories) do *not* contain a certain type of file. All
> these files have a '.cxd' extension. The simple command line script I
> wrote was
>
>
> touch no_cxd for d in * ; do ls $d/*cxd | grep cannot >> no_cxd done
>
I found a way to fill such a file with data:
grep -r Verzeichnis ./ 2> no_cxd 1>&2
After this the file no_cxd contains amount of characters.
This is of course not what you need right now, but
perhaps you can fix this command youself now.
Regards
Ralf