From: Rick von Richter (rickv@mwh.com)
Date: Thu Aug 08 2002 - 16:44:45 EDT
Original question
-----------------
In one of my users' home dir there are two subdirectories with no name. I
suspect there are control characters in there. Is there a way to see what are
the characters in the dir name? I.e. examine the inode or something like that.
Answers
-------
1) ls -lab
This shows the characters as octal number.
Arrrgh... I did rtfm on ls but did not associate "non-printing characters" with
screen stuff. (Head hung low)
2) ls | cat -vet
This will show control characters with a $ at the end of each line.
3) ls -la > /tmp/zzz ; vi /tmp/zzz
This will show the control characters.
4) ls | od -c
This will show in octal but you need to weed through the output.
5) rm -ri *
This is if you just want to remove them.
Thanks for the help.
Cheers, Rick
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Rick von Richter Production Support Manager Voice: 858-831-2222 rickv@mwh.com Maintenance Warehouse/Home Depot Fax: 858-831-2221 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The box says: Win98, WinNT or BETTER. That's why I installed Linux. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [demime 0.99c.7 removed an attachment of type text/x-vcard which had a name of rickv.vcf] _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:44 EDT