Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rm -rf too many arguments 1

Status
Not open for further replies.

dodge20

MIS
Jan 15, 2003
1,048
US
I am running into this problem. I am trying to delete a big directory by using rm -rf, but I get a message saying too many arguments. I am using unix sco 5.0.5

Is there a limitation to this? Or a work around to get this fixed. I use this on a daily basis, but the really big directories (this last one i tried had over 1200 files) I get this too many arguments message.

Any help is appreciated.

Dodge20
 
So could I just write

xargs rm -rf dirname

I am a little confused.

Dodge20
 
or how about

find /user/jay2/test -type d | xargs rm -rf

Dodge20
 
If you are just typing rm -rf dirname then there is only one argument, so I can't see why you are getting that message. Did you perhaps type rm -rf dirname/* instead?

Annihilannic.
 
Annihilannic

No this is run in a small program. I just did a test on the

find /user/jay2/test -type d | xargs rm -rf

and it worked.

Thanks olded for pointing me in the right direction. If you see anything that i need to change or can make better - let me know.

Thanks

Dodge20
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top