Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'doesn't work for me' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
doesn't work for me
Authored by: wealthychef on Mar 19, '02 09:12:59PM

[richcookmac:~] rcook% cat languageKiller.sh
#!/bin/tcsh
sync;df;date
foreach language ( French Dutch Spanish Italian Swedish Portuguese German )
find / -name $language.lproj -type d -exec rm -r -- {} ; -prune
end
date;df;sync

[richcookmac:~] rcook% sudo languageKiller.sh
(df and date outputs deleted)
find: missing argument to `-exec'
-prune: Command not found.
find: missing argument to `-exec'
-prune: Command not found.
find: missing argument to `-exec'
-prune: Command not found.
find: missing argument to `-exec'
-prune: Command not found.
find: missing argument to `-exec'
-prune: Command not found.
find: missing argument to `-exec'
-prune: Command not found.
find: missing argument to `-exec'
-prune: Command not found.
(df and date outputs trimmed)
[richcookmac:~] rcook%



[ Reply to This | # ]