#last edited 6/16/2008
#
#clean out 848 files older than 10 days and cue files
cd $HOME/POD/wbez/848 ; find ./ -name '*.mp3' -ctime +10 -exec rm {} \;
cd $HOME/POD/wbez/848 ; find ./ -name '*.cue' -exec rm {} \;
chad@vectra:~/scripts$ ./do_clean_stale~
find: missing argument to `-exec'
find: missing argument to `-exec'
chad@vectra:~/scripts$
2nd attempt based on info on Internet (added -f and quotes around the {})
#last edited 6/16/2008
#
#clean out 848 files older than 10 days and cue files
cd $HOME/POD/wbez/848 ; find ./ -name '*.mp3' -ctime +10 -exec rm -f '{}' \;
cd $HOME/POD/wbez/848 ; find ./ -name '*.cue' -exec rm -f '{}' \;
chad@vectra:~/scripts$ ./do_clean_stale
find: missing argument to `-exec'
find: missing argument to `-exec'
chad@vectra:~/scripts$
I tried several other variations and got the same errors
Bookmarks