I'm a bit bogged down in the rm syntax to permanently delete any CCHDK*.CFG from A/CHDK.
A hand with that would be appreciated.
___> help rm
delete (rm) [options] <target, target,...>: - delete file/directories from the camera
<target...> files/directories to remote
options:
-fmatch=<pattern> upload only file with names matching <pattern>
-dmatch=<pattern> only delete directories with names matching <pattern>
-rmatch=<pattern> only recurse into directories with names matching <pattern>
-nodirs don't delete directories recursed into, only files
-maxdepth=n only recurse into N levels of directory
-pretend print actions instead of doing them
-ignore_errors don't abort if delete fails, continue to next item
-skip_topdirs don't delete directories given in command line, only contents
note <pattern> is a lua pattern, not a filesystem glob like *.JPG
(oops, "upload" on fmatch is a typo, of course it should be delete
)
-pretend is your friend
con> rm -pretend -nodirs -fmatch=%.CFG$ CHDK
A/CHDK/DATA/DEFAULT.CFG: OK
A/CHDK/DATA/FIXEDINT.CFG: OK
A/CHDK/DATA/MDFB2013.CFG: OK
A/CHDK/DATA/MFVALS.CFG: OK
A/CHDK/DATA/ISOINC.CFG: OK
A/CHDK/CCHDK4.CFG: OK
A/CHDK/OSD__4.CFG: OK
Don't want to recurse... limit with maxdepth
con 2> rm -pretend -nodirs -maxdepth=1 -fmatch=%.CFG$ CHDK
A/CHDK/CCHDK4.CFG: OK
A/CHDK/OSD__4.CFG: OK