Summary: Remove files

From: Daniel Lee <daniel_lee_at_asia.com>
Date: Fri Jun 01 2001 - 16:28:55 EDT
There are so many people to thank.   Sorry, I can't list them all.

Majority of the people say to use:
rm -i *
You will be interactivlely prompted for each files to be deleted.  It works wonderfully.  Sorry, it is such as obvious answer that slip my head.

Others suggested to use list and remove the inode:
ls -il | more
find ./ -inum <inodenumber> -prune -exec rm -i {} \;
This works as well.   Be sure to include -i for interactive.  It listed out some files in other directories with the same inode number.

Someone suggested to do:
ls -li
then clear those inodes by "clri"
clri
Sorry, I didn't try this one.

Other suggestions:
emacs in dired mode (ESC-x dired)
ls | od -xc
unlink (not sure what to unlink if it does not recognize the file)
Eric Paul emailed me a Perl script that I did not try yet.

Other failed:
rm ./"^V^D"
rm: ./^V^D non-existent

rm -- "^V^D"
rm: ^V^D non-existent

Other than that, I am still having problem removing the first file.

Many thanks,
Daniel


-----Original Message-----
From: "Daniel Lee" <daniel_lee@asia.com>
Date: Fri, 01 Jun 2001 23:20:04 +0800
To: sunmanagers@sunmanagers.org
Subject: Remove files


> Folks,
> 
> I would like to know how to remove some strange files:
> 
> #ls -l
> -rw-r--r--   1 root       sys              0 Jul 24  1998 ^V^D
> -rw-r--r--   1 root       sys              0 Jul 24  1998 ^V{^CM-2M-<^B{
> M-^GM-^@{M-^GM-^@M-@^RM-vM-KM-u^K@^AM-PM-`{M-^GM-^@M-%@s
> 
> #ls
>                             etc
> {{{
>          @{@s  
> 
> Thanks,
> Daniel

-- 

_______________________________________________
Get your free email from http://www.mail.com
Received on Fri Jun 1 21:28:55 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:24:56 EDT