Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Feb 2012 00:10:36 +0200
From:      Rares Aioanei <bsdlisten@gmail.com>
To:        =?windows-1251?Q?=CA=EE=ED=FC=EA=EE=E2_=C5=E2=E3=E5=ED=E8=E9?= <kes-kes@yandex.ru>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: 'rm' Can not delete files
Message-ID:  <4F31A15C.3050506@gmail.com>
In-Reply-To: <1237723287.20120207235924@yandex.ru>
References:  <1237723287.20120207235924@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02/07/2012 11:59 PM, Коньков Евгений wrote:
> # rm *
> /bin/rm: Argument list too long.
>
>
> in this directory about 25000 files,
> but actually there is only one argument to rm it is '*' sign.
>
> Why rm get list of all files in directore instead of deleting one by one?
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>
AFAIR, the shell expands * to every match , so from this point of view 
it is equivalent to the 25000 files. Try 'rm -f [a-d]*' , then [e-h]* or 
similar until you get them all.

Best,

-- 
Rares Aioanei




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F31A15C.3050506>