to find empty files
+2
urvershi
preethika subramanian
6 posters
to find empty files
use the commands
find -empty
or
find / -size 0 -print
find -empty
or
find / -size 0 -print
preethika subramanian- Posts : 6
Points : 12
Join date : 2010-02-26
command to delete all empty files and directories
find . -empty | xargs rm -rf
urvershi- Posts : 21
Points : 70
Join date : 2010-02-26
Re: to find empty files
when the file is empty why do u want to find it
ARVINTH B.J- Posts : 20
Points : 31
Join date : 2010-02-26
Re: to find empty files
to delete the unwanted empty files......
preethika subramanian- Posts : 6
Points : 12
Join date : 2010-02-26
Re: to find empty files
how to delete empty files interactively???
I tried this
find . -size 0 -print | xargs rm -i
but the qns for deleting r displaying but couldn delete the files
I tried this
find . -size 0 -print | xargs rm -i
but the qns for deleting r displaying but couldn delete the files
Mekala- Posts : 7
Points : 12
Join date : 2010-03-04
Re: to find empty files
try this one:
find . -empty -exec rm -i {} ';'
or
find.-empty -print -exec rm -i {}';'
find . -empty -exec rm -i {} ';'
or
find.-empty -print -exec rm -i {}';'
akalya- Posts : 70
Points : 86
Join date : 2010-03-04
Similar topics
» pgm to find who logs in and logs out over a period of time
» to delete empty directory!!
» deleting non-empty directories??
» compare files in different dir
» [SYNTAX] Working with Directories and Files
» to delete empty directory!!
» deleting non-empty directories??
» compare files in different dir
» [SYNTAX] Working with Directories and Files
Permissions in this forum:
You cannot reply to topics in this forum