Operating System - HP-UX
1833777 Members
2199 Online
110063 Solutions
New Discussion

Re: remove directory with non-printable character directory name

 
Ridzuan Zakaria
Frequent Advisor

remove directory with non-printable character directory name

Hi,

Could someone please let me know how to remove a directory with non-printable characters?

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

Thanks.
quest for perfections
4 REPLIES 4
Sandman!
Honored Contributor

Re: remove directory with non-printable character directory name

How about removing it interactively as...

# rm -iR *

...answer (y)es only to the specific directory you want deleted.
Robert-Jan Goossens_1
Honored Contributor

Re: remove directory with non-printable character directory name

Hi,

How about removing the inode of the directory.

# ls -i

# find . -xdev -inum xxx -exec rm {} \;

Regards,
Eobert-Jan
Victor Fridyev
Honored Contributor

Re: remove directory with non-printable character directory name

Hi,

As far as I see, the name consists of 4 characters.
Try to do
#>ls -ldb ????
If the answer is only for this directory, run
#> rm -r ????

HTH
Entities are not to be multiplied beyond necessity - RTFM
Ridzuan Zakaria
Frequent Advisor

Re: remove directory with non-printable character directory name

Thanks everyone. I am using solution provided by Robert-Jan.
quest for perfections