2004
find: missing argument to -exec (remove Picasa.ini files)
So let’s say you just ran Picasa, Google’s new aquisition, and it displays all your pictures great. It’s actually a reall neat little application, pretty slick.
However, it is not so slick that it can’t help but leave a (hidden) “Picasa.ini” file in every directory it finds images in. That is mostly fine, except for how it also indexes everything, including directories under source control (CVS).
So, whipping out trusty cygwin (could also do it using Explorer Search feature…), I try $ find . -name "Picasa.ini" -exec rm {}/;
Results without the space:
$ find . -name "Picasa.ini" -exec rm {}/;
find: missing argument to '-exec'
Frustrating.
Solution:
You MUST include a space between the {} and the /;. If you don’t you will get the missing argument error. If you put the space in, you will successfully delete every Picasa .ini file.
$ find . -name "Picasa.ini" -exec rm {} /;
Bonus:
From j0hnny
Picasa is an ‘Automated Digital Photo Organizer’ recently aquired by Google. This search allows the voyer to browse directories of photos uploaded using the picasa software.
Popularity: 2% [?]



