On 01/19/12 15:07, Jon Dowland wrote:
On 19/01/12 12:25, Wawrzek Niewodniczanski wrote:
So theoretical your comment is right, but I doubt that max argument
limit is the reason of problem in this case.
Well, read the error message again:
> ./check_file.sh: line 8: [: too many arguments
On Thu, Jan 19, 2012 at 8:17 PM, Wawrzek Niewodniczanski
wrote:
> On 01/19/12 11:45, Jon Dowland wrote:
>
> On 19/01/12 11:29, Wawrzek Niewodniczanski wrote:
>
> On 01/19/12 03:04, lina wrote:
>
> [...]
>
> Thanks,
> but here it complains so many $ ./check_file.sh
> ./check_file.sh: line 8: [: too
On Sat, Jan 21, 2012 at 4:02 AM, Karl Vogel wrote:
>>> On Thu, 19 Jan 2012 00:34:50 +0800,
>>> lina said:
>
> L> I am choked by how to check more than 400 files exist or not, if not,
> L> sleep, but once it's all generated, continue do something. Those files
> L> have a common feature: sys_em_$i
>> On Thu, 19 Jan 2012 00:34:50 +0800,
>> lina said:
L> I am choked by how to check more than 400 files exist or not, if not,
L> sleep, but once it's all generated, continue do something. Those files
L> have a common feature: sys_em_$i.txt
The script below doesn't do any glob-expansion of f
> On 19/01/12 08:33, Balint Szigeti wrote:
>> run this
>>
>> ls|xargs wc -l
>
> Never parse the output of ls(1)
>
> http://mywiki.wooledge.org/ParsingLs
>
WOW, that link to Greg's (also known as GreyCat's) wiki is awesome! Thanks!
Keith Ostertag
--
To UNSUBSCRIBE, email to debian-user-requ...@
Am 19.01.2012 04:04, schrieb lina:
…
>> if [ ` ls -1 sys_em_*.txt | wc -l` == "$my_number" ] then
Syntax: ';' missing before then?
if [ ` ls -1 sys_em_*.txt | wc -l` == "$my_number" ]; then
Cheers
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsu
On 19/01/12 12:25, Wawrzek Niewodniczanski wrote:
So theoretical your comment is right, but I doubt that max argument
limit is the reason of problem in this case.
Well, read the error message again:
> ./check_file.sh: line 8: [: too many arguments
The test binary, aka '[', has received t
On 01/19/12 12:17, Wawrzek Niewodniczanski wrote:
On 01/19/12 11:45, Jon Dowland wrote:
On 19/01/12 11:29, Wawrzek Niewodniczanski wrote:
On 01/19/12 03:04, lina wrote:
[...]
Thanks,
but here it complains so many $ ./check_file.sh
./check_file.sh: line 8: [: too many arguments
Possible prob
On 01/19/12 11:45, Jon Dowland wrote:
On 19/01/12 11:29, Wawrzek Niewodniczanski wrote:
On 01/19/12 03:04, lina wrote:
[...]
Thanks,
but here it complains so many $ ./check_file.sh
./check_file.sh: line 8: [: too many arguments
Possible problem with spaces. This one works for me:
No, the pr
On 19/01/12 11:29, Wawrzek Niewodniczanski wrote:
On 01/19/12 03:04, lina wrote:
[...]
Thanks,
but here it complains so many $ ./check_file.sh
./check_file.sh: line 8: [: too many arguments
Possible problem with spaces. This one works for me:
No, the problem is the number of arguments to th
On 19/01/12 08:33, Balint Szigeti wrote:
run this
ls|xargs wc -l
Never parse the output of ls(1)
http://mywiki.wooledge.org/ParsingLs
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: htt
On 01/19/12 03:04, lina wrote:
[...]
Thanks,
but here it complains so many $ ./check_file.sh
./check_file.sh: line 8: [: too many arguments
Possible problem with spaces. This one works for me:
my_number=400
while :
do
if [ `ls -1 sys_em_*.txt | wc -l` == "$my_number" ]
then
break
f
On 19/01/2012 04:51, Anand Sivaram wrote:
2012/1/19 lina mailto:lina.lastn...@gmail.com>>
On Thu, Jan 19, 2012 at 1:35 AM, Wawrzek Niewodniczanski
mailto:wawrzek.niewodniczan...@citrix.com>> wrote:
> On 01/18/12 16:34, lina wrote:
>
> Hi,
>
> Thanks ahead for readin
On 19/01/2012 03:04, lina wrote:
On Thu, Jan 19, 2012 at 1:35 AM, Wawrzek Niewodniczanski
wrote:
On 01/18/12 16:34, lina wrote:
Hi,
Thanks ahead for reading this email.
I am choked by how to check more than 400 files exist or not, if not,
sleep, but once it's all generated, continue do some
On 19/01/2012 03:04, lina wrote:
On Thu, Jan 19, 2012 at 1:35 AM, Wawrzek Niewodniczanski
wrote:
On 01/18/12 16:34, lina wrote:
Hi,
Thanks ahead for reading this email.
I am choked by how to check more than 400 files exist or not, if not,
sleep, but once it's all generated, continue do some
2012/1/19 lina
> On Thu, Jan 19, 2012 at 1:35 AM, Wawrzek Niewodniczanski
> wrote:
> > On 01/18/12 16:34, lina wrote:
> >
> > Hi,
> >
> > Thanks ahead for reading this email.
> >
> > I am choked by how to check more than 400 files exist or not, if not,
> > sleep, but once it's all generated, con
On Thu, Jan 19, 2012 at 1:35 AM, Wawrzek Niewodniczanski
wrote:
> On 01/18/12 16:34, lina wrote:
>
> Hi,
>
> Thanks ahead for reading this email.
>
> I am choked by how to check more than 400 files exist or not, if not,
> sleep, but once it's all generated, continue do something.
>
> for i in $(se
On 01/18/12 16:34, lina wrote:
Hi,
Thanks ahead for reading this email.
I am choked by how to check more than 400 files exist or not, if not,
sleep, but once it's all generated, continue do something.
for i in $(seq 5); do if [ -e sys_em_$i.txt ] ; then echo done ; fi ;
done not work.
those f
On Thu, Jan 19, 2012 at 12:34:50AM +0800, lina wrote:
> Hi,
>
> Thanks ahead for reading this email.
>
> I am choked by how to check more than 400 files exist or not, if not,
> sleep, but once it's all generated, continue do something.
>
> for i in $(seq 5); do if [ -e sys_em_$i.txt ] ; then ech
19 matches
Mail list logo