Hi,
I have this command in my script,
find . -maxdepth 1 ! -name some_file_name -exec rm -fr {} \;
It is to delete all the files except one file named in the command.
It works fine, but I always see "rm:can not remove '.' or '..' "
error message.
Then I run this command,
find . -maxdepth 1 ! -name some_file_name
I do see that the first file is ".", I wonder if ther is a way not to
list "."?
Thanks.