OK, so let's say that you've inadvertantly created a file whose name
starts or includes an unprintable character.  When you type 'ls' at the
prompt, you might get something like this:

        bash$ ls
        ?	file1   file2   file3
        bash$

Using the '-b' option to ls, you'll see the octal or symbolic value to
the file name.

        bash$ ls -b
        \r	file1   file2   file3
        bash$

Now, in order to delete this file, you need to use BASH's QUOTING
capabilities (more info in the bash manpage).

        bash$ rm $'\r'
        bash$ ls -b
        file1   file2   file3
        bash$

Violla!  Gone.  Of course you could do a little overkill with python:

        bash$ python
        >>> import sys,os
        >>> os.unlink('\r')
        >>> sys.exit(0)
        bash$

Have fun!

-- 
Chad Walstrom <chewie at wookimus.net>           http://www.wookimus.net/
           assert(expired(knowledge)); /* core dump */

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list