Re: ksh - ls NAME.* <-Argument list too long

2006-12-20 Thread Dave Ewart
On Wednesday, 20.12.2006 at 14:34 +0100, Sebastian Rother wrote: > Hello everybody, > > I wanted to stress the Antivirus a littlebit and wanted to know how > many Backdoors are in the Test-Archive for this case: > > mailgw $ ls | wc -l >10656 > mailgw $ ls Backdoor.* | wc -l > ksh: ls: Argum

Re: ksh - ls NAME.* <-Argument list too long

2006-12-20 Thread Otto Moerbeek
On Wed, 20 Dec 2006, Lars Hansson wrote: > On Wednesday 20 December 2006 21:34, Sebastian Rother wrote: > > Could that be a "Bug"? > > No. "ls" cant take an infinite number of arguments. > Just use grep to get the Backdoor entries. [sorry for the previous incomplete post] find . -name 'pattern'

Re: ksh - ls NAME.* <-Argument list too long

2006-12-20 Thread Otto Moerbeek
On Wed, 20 Dec 2006, Lars Hansson wrote: > On Wednesday 20 December 2006 21:34, Sebastian Rother wrote: > > Could that be a "Bug"? > > No. "ls" cant take an infinite number of arguments. > Just use grep to get the Backdoor entries. find -name '

Re: ksh - ls NAME.* <-Argument list too long

2006-12-20 Thread Stuart Henderson
On 2006/12/20 14:34, Sebastian Rother wrote: > mailgw $ ls | wc -l >10656 > mailgw $ ls Backdoor.* | wc -l > ksh: ls: Argument list too long >0 You exceeded ARG_MAX bytes; $ getconf ARG_MAX 262144 from sysconf(3): _SC_ARG_MAX The maximum bytes of arguments to exec(3) (

Re: ksh - ls NAME.* <-Argument list too long

2006-12-20 Thread Lars Hansson
On Wednesday 20 December 2006 21:34, Sebastian Rother wrote: > Could that be a "Bug"? No. "ls" cant take an infinite number of arguments. Just use grep to get the Backdoor entries. Lars Hansson

ksh - ls NAME.* <-Argument list too long

2006-12-20 Thread Sebastian Rother
Hello everybody, I wanted to stress the Antivirus a littlebit and wanted to know how many Backdoors are in the Test-Archive for this case: mailgw $ ls | wc -l 10656 mailgw $ ls Backdoor.* | wc -l ksh: ls: Argument list too long 0 mailgw & Could that be a "Bug"? The directory includes also