[wplug] RESOLVED: RE: find & -exec / -ok
Vanco, Don
don.vanco at agilysys.com
Thu Sep 25 16:16:48 EDT 2003
Fah!
I hopped out of X (using Gnome Multi Terminal) and it worked fine from
command line.
Don
Vanco, Don <> scribbled on Thursday, September 25, 2003 4:16 PM:
> 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