Delete Badly Named Files

SYNOPSYS

sometimes, for whatever reason, you end up with bad files with terrible names like ‘–’.
this is how you do to erase them.

PROCEDURE

/etc/config/file.conf
1
2
3
$ ls -li
655464 -rw-r--r--  1 user user  889 Apr 28 09:25 --
$ find . -maxdepth 1 -inum 655464 -delete