Deleting files with special charaters

Deleting file that have special characters in them can be tricky. This is what you have to do to delete them.

because rm -r -file will give you a error

[root@solaris:/]# rm -C
rm: illegal option — C
usage: rm [-fiRr] file …

so what you have to do is search figure out what the inode is

[root@solaris:/]# ls -il -C
total 2723130
32081 -rw-r–r– 1 root root 1392916480 Dec 4 14:55 -C

the 32081 is the inode number

[root@solaris:/u10/app 102]# find . -inum 32081 -exec rm -i {} \;
rm: remove ./-C (yes/no)? y

now the file is gone, yaha!