Linux / UNIX Tech Support Forum
This is a discussion on how to delete 0 bytes file within the Linux software forums, part of the Linux Getting Started category; Dear All. what is the code to delete 1000 files of 0 bytes. Regards. Puppen[/code]...
|
|||||||
| Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Dear All.
what is the code to delete 1000 files of 0 bytes. Regards. Puppen[/code]
__________________
someone somewhere is made for you. LOVE is Journey not a destination. ALL I want is EVERYTHING. |
| Sponsored Links | ||
|
|
|
||||
|
if you get two many files error use command and so on..
Code:
/bin/rm -f a* /bin/rm -f b* Code:
for f in a b c d .... z do /bin/rm -f $f* done
__________________
Vivek Gite Linux Evangelist |
|
|||
|
Quote:
Meanwhile, look a the "find" manual page (i.e.: man find) and pay attention to the -size and -type options. Then, look at the "xargs" page (i.e.: man xargs). |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell Delete Directory | chimu | Slackware | 2 | 31-05-2008 03:36 PM |
| Shell Script to Automatically Delete a File via Cron Job | kakarla | Shell scripting | 2 | 29-01-2008 08:54 AM |
| Shell script to delete a file with a dialog utility | shankar100 | Shell scripting | 4 | 02-03-2007 10:22 AM |
| delete directory linux | chiku | Linux software | 4 | 22-07-2006 06:56 PM |
| using sed to delete everything except needed patterns | guest | Shell scripting | 8 | 12-09-2005 02:57 AM |