D
Deepu
Hi All,
I am trying to count the number of errors in a file:
ERROR: Display
ERROR:Virtual
ERROR: Test
ERROR: Random
I use:
$ctError = `grep -ci error filename`;
It gives 4
Now i am trying to count error which doesnot contain Virtual, so i
should get $ctError = 3. Is there any way possible to implement in the
same line.
Thanks
I am trying to count the number of errors in a file:
ERROR: Display
ERROR:Virtual
ERROR: Test
ERROR: Random
I use:
$ctError = `grep -ci error filename`;
It gives 4
Now i am trying to count error which doesnot contain Virtual, so i
should get $ctError = 3. Is there any way possible to implement in the
same line.
Thanks