windows - Shell says find: missing argument to `-exec' and no alternatives working -
a backup program used made duplicates of whole bunch of files throughout computer because of setting i've since changed.
when backup program made copy, renamed old 1 original1.thefilename.extension. i'm trying automatically delete of these unnecessary files simple shell command.
find -type f -name 'original1*' -exec rm {} \; however, when try run get
find: missing argument `-exec' i've looked on web solution. i've found suggestions should try exec rm +, -exec rm {} +, -exec rm {} \;, -exec rm + etc. none of them work. using windows 8.1
i appreciate help!
in windows command shell, don't need escape semicolon.
find -type f -name 'original1*' -exec rm {} ; your version of command should work in bash shell (like cygwin).
it's interesting gnu find execute, because on windows 8.1 machine, microsoft's find.
Comments
Post a Comment