[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Too many subdirectories



I made a c program :

#include <stdio.h>
main()
{
int nbr=0;
while(1)
	{
	printf("%d\n",nbr+=1);
	mkdir ("x");
	chdir ("x");
	}
exit(0);
}

My problem is that there is now too many subdirectories (10,000) and rm said
" Memory exhausted " when I type 
rm -rf x
Does anyone know of a C script which can suppress all these directories ?
Thanks.

-- 
         // -----oOo----- ---------oOo-------- -------oOo------\\
        | Sami Dalouche  | samid@ifrance.com  | AIM : linhax    |
        | 01.34.83.16.76 | linhax@ifrance.com | ICQ : 33394428  |
         \\ -----oOo----- ---------oOo-------- -------oOo------//

Attachment: pgp_sXOA0xEYi.pgp
Description: PGP signature


Reply to: