you can step back and delete the whole folder i guess. or if files which are to be 
left in that folder are lesser than the files to be deleted then cp them into another 
folder, and delete the whole folder.
Like:

pwd
/home/abc
mkdir /home/abc-backup
cp *.c /home/abc-backup/
cd ..
rm -rf abc 
mv abc-backup abc
chown abc:abc abc
chown abc:abc abc/*   or chown -R abc:abc abc/ ( i guess )
and you're done. 
Atleast this is how I do it. If you find any other better way then sure let me know.


Regards, 
---------
Muhammad Faisal Rauf Danka

Chief Technology Officer
Gem Internet Services (Pvt) Ltd.
web: www.gem.net.pk
voice: 92-021-111-GEMNET

Vice President
Pakistan Computer Emergency Responce Team (PakCERT)
web: www.pakcert.org

Chief Security Analyst
Applied Technology Research Center (ATRC)
web: www.atrc.net.pk
voice: 92-21-4980523 92-21-4974781 

"Great is the Art of beginning, but Greater is the Art of ending. "

------BEGIN GEEK CODE BLOCK----
Version: 3.1
GCS/CM/P/TW d- s: !a C++ B@ L$ S$ U+++ 
P+ L+++ E--- W+ N+ o+ K- w-- O- PS PE- Y- 
PGP+ t+ X R tv+ b++ DI+ D G e++ h! r+ y+
------END GEEK CODE BLOCK------


--- Jeff Bearer <[EMAIL PROTECTED]> wrote:
>What is an easy way to delete 9000 files in a directory when rm -f *
>fails saying the argument list is too long?  I'd prefer not to have to
>do it a little bit at a time like:
>
>rm -f a*; rm -f b*; etc.
>
>
>-- 
>Jeff Bearer, RHCE
>Webmaster
>PittsburghLIVE.com
>2002 EPpy Award, Best Online U.S. Newspaper
>
>
>
>_______________________________________________
>Redhat-list mailing list
>[EMAIL PROTECTED]
>https://listman.redhat.com/mailman/listinfo/redhat-list

_____________________________________________________________
---------------------------
[ATTITUDEX.COM]
http://www.attitudex.com/
---------------------------

_____________________________________________________________
Promote your group and strengthen ties to your members with [EMAIL PROTECTED] by 
Everyone.net  http://www.everyone.net/?btn=tag



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to