[wplug] find & -exec / -ok

Vanco, Don don.vanco at agilysys.com
Thu Sep 25 16:15:48 EDT 2003


Argh.  "find" is not behaving as expected.

Scenario:
USB hard drive (based Linux MP3 player) that spends time attached to a
Windoze box.  Windoze (through "folder settings") pollutes the drive with,
among other things, a "Desktop.ini" file in every directory.

I expect that this:
find . -name *.ini -exec rm {} \;
...will delete all this crap.
Further, I expect that 
find . -name *.ini -ok rm {} \;
....will do the same but prompt me for each deletion.

In both cases I get a response that tells me I am not providing an
appropriate argument to either -ok or -exec.

WTF?

(have tried in multiple shells)

Don



More information about the wplug mailing list