on 11-04-2008 4:48 PM
Hi experts,
I am trying to remove files in our unix box where there are nearly 10000 of files .
i am using the below command, but it says no match, or too many arguments etc.
rm -rf 200607?/* and rm -rf 200607/*.
Please help.
thanks
anuroop
You can do try to delete them one by one using a script like
find . -name 2006* | xargs rm -f
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I still get the same message as Arguments too long.
In the directory called xyz, there are 10000 of files and this files are accrued monthly.I need to delete some of the monthly files .So for e.g
200607* year 2006 and month july, so i need to delete this month files,like that i need delete till september.
when i do
Host:<SID>adm 28> find . -name 200607* | head
Arguments too long.
In the same way when i do
Host:<SID>adm 28>find . -name 200607* | xargs rm -f
Arguments too long.
Thnaks
USe the below you should be successfull
find . -name 2006* | xargs rm -f
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Anuroop,
Could you please reply on following points
Provide us the few sample file name.
Are all the files are in same folder?
Is there any other files present in the directory?
Best wishes...
Sovon Sengupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
then you have to narrow the selection to a specific subset in order to get the deletion done...
GreetZ, AH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.