Operating System - HP-UX
1833824 Members
2098 Online
110063 Solutions
New Discussion

non-printing character directory name

 
Ridzuan Zakaria
Frequent Advisor

non-printing character directory name

Hi,

How do I remove directory that has non-printing character directory name?

$ ls -lbd *
drwxr-sr-x 2 oracle dba 96 May 25 2004 \010\010\010\010

Thanks.
quest for perfections
4 REPLIES 4
Sean Dale
Trusted Contributor

Re: non-printing character directory name

You could try putting quotes around the filename.
Live life everyday
IT_2007
Honored Contributor

Re: non-printing character directory name

use this command.

ls -lbd * -exec rm -rf {} \;
Robert-Jan Goossens_1
Honored Contributor

Re: non-printing character directory name

Hi,

# cd base_directory
# ls -i | grep 010
find the inode number of the directory

# find . -xdev -inum XXX -exec mv {} /tmp/new_directoy_name \;

Regards,
Robert-Jan
Ridzuan Zakaria
Frequent Advisor

Re: non-printing character directory name



Robert-Jan,

The command should be "ls -ib | grep 101" instead of "ls -i | grep 101" . I used your suggestion to remove the directory.

Thank for all your feedback.
quest for perfections