1833588 Members
4295 Online
110061 Solutions
New Discussion

remove blank file

 
SOLVED
Go to solution
Ratzie
Super Advisor

remove blank file

I have a file that I need to remove
when I do an ll it is listed as:
-rw-r--r-- 1 users sshd 47662 Jan 18 2004 Report.txt
-rw-r--r-- 1 use
-rwxrwxrwx 1 users sys 62 Nov 26 2001 dtstart

If I do an ls -b to list the inode:
Report.txt
coco_print\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177coco_print\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177\177
dtstart

How do I remove the file?
3 REPLIES 3
RAC_1
Honored Contributor
Solution

Re: remove blank file

rm -i coco_print*

OR

ls -il
note down the inode no.
find . -inum "no" -exec rm -i {} \;

Anil
There is no substitute to HARDWORK
Biswajit Tripathy
Honored Contributor

Re: remove blank file


# ls -b | grep -v ^[Rd] | xargs rm -f


- Biswajit
:-)
Ratzie
Super Advisor

Re: remove blank file

rm -i coco_print*