I often need to remove some similarly named extraneous files from certain directories. Muscle memory kicks in and there have been now several times in which I've appended an * after a space when it really would have been better to not. Multiple files to be deleted I end up with
rm FILES*
, no sweat, but occasionally there is only one files and of course I rapidly enter rm FILE *
which deletes everything in the directory, which is recoverable but unfortunate. I found that bash has a -nospace option but see nothing similar in the sh
man page. Is there a method to accomplish this in the standard shell?