Mailinglist Archive: opensuse-de (4902 mails)
| < Previous | Next > |
Re: bash: /usr/bin/fgrep: Argument list too long
- From: wfranke@xxxxxxxxxxxxxxxxxxx (Werner Franke)
- Date: Wed Jul 26 06:32:51 2000
- Message-id: <397E8613.873471A4@xxxxxxxxxxxxx>
Bernd Brodesser wrote:
Hi Stefan,
* Stefan Goerres schrieb am 25.Jul.2000:
fgrep inn /var/spool/imap/user/tom/Lists/SuSe/* gibt leider nur
folgendes aus bash: /usr/bin/fgrep: Argument list too long ! In einem
anderen Verzeichnis geht das ganze. Liegt das an zu vielen Dateien?
sind etwas mehr als 40000 Stück oder so?!
Scheint so zu sein. fgrep bekommt von der shell fgrep inn und dann
40000 Dateienamen, jedesmal mit dem Pfad davor. Vielleicht hilft es ja
schon, wenn Du ein cd /var/spool/imap/user/tom/Lists/SuSe machst und
dann ein fgrep inn *
versuch doch mal das Kommando "xargs". Ich glaube das behebt das
Problem.
=> The xargs utility constructs a command line consisting of
the utility and argument operands specified followed by as
many arguments read in sequence from standard input as will
fit in length and number constraints specified by the
options. The xargs utility then invokes the constructed
command line and waits for its completion. This sequence is
repeated until an end-of-file condition is detected on stan-
dard input or an invocation of a constructed command line
returns an exit status of 255.
Gruss aus dem schon wieder verregneten Nuernberg
Werner Franke
---------------------------------------------------------------------
To unsubscribe, e-mail: suse-linux-unsubscribe@xxxxxxxx
For additional commands, e-mail: suse-linux-help@xxxxxxxx
| < Previous | Next > |