Search Results

Search: Posts Made By: subin_bala
3,841
Posted By subin_bala
Hi , Still it is not working... ...
Hi ,

Still it is not working...


#!/bin/perl

use strict;
use pcmif;

my $max;

$max = `perl -lanF';' -e 'BEGIN{$max=0}{$max = $F[2] if $F[2]>$max}END{print $max}'...
3,841
Posted By subin_bala
Hi , If i am executing this command from my...
Hi ,

If i am executing this command from my unix prompt it is working fine and giving me the correct result. But it is not working inside my perl script . it is giving error.

#!/bin/perl
...
3,841
Posted By subin_bala
Perl : Get Maxdate from the file
Hi All,

I have a input file like below :
-------------------------------------------------
949890;01-4477138;20101208;7003907933;0
1352305;01-32175;20101225;7005373440;0...
7,102
Posted By subin_bala
Hi , It looks like the command "perl...
Hi ,

It looks like the command "perl -wlane" is not working inside my programm..
Can anybody help in this ??

Thanks in advance..
7,102
Posted By subin_bala
Hi Thanks for the reply... But i am not able...
Hi Thanks for the reply...

But i am not able to put this solution to my code .(may be i am trying wrong)
so can u please help me to fit solution in my code ?

i am pasting my code part here.....
7,102
Posted By subin_bala
Perl script :- Phone number validation
Hi All,

I am doing a perl script validation for Phone numbers.
The normal phone number format is 01-32145.

I need to do two validations for the phone number

1) A valid phone number can...
13,227
Posted By subin_bala
try this ls *.txt | sed -e...
try this

ls *.txt | sed -e "s/[0-9]//g"
7,520
Posted By subin_bala
zaxxon's solution is the best one... Without...
zaxxon's solution is the best one...
Without using sed i tried like this ( its a lengthy code )

#!/bin/bash
Count=0
while read line
do
echo $line >> output.txt
Count=`expr $Count + 1`
if [...
4,970
Posted By subin_bala
Thanks for the explanation
Thanks for the explanation
4,970
Posted By subin_bala
And can u pls expain simply how code is working ...
And can u pls expain simply how code is working ??

Thanks in advance
4,970
Posted By subin_bala
Hi, I used nawk and its working fine. ...
Hi,

I used nawk and its working fine.

Thanks alot Radoulov for ur constant support :)

Thanks and Regards,
Subin
4,970
Posted By subin_bala
How can i use "nawk/XPG awk suggestion" in my...
How can i use "nawk/XPG awk suggestion" in my code ?

if i am trying following command :

which awk - /usr/bin/awk is the output
which nawk - /usr/bin/nawk is the output
4,970
Posted By subin_bala
Hi, Thanks for the reply... I tried like this...
Hi,
Thanks for the reply...
I tried like this .

awk 'END {
if (f) print r
}
/ Mon / {
if (f) print r
r = f = 0
}
$0 ~ "cm:" id { f++ }
{ r = r ? r RS $0 : $0 }
' id=10614...
25,306
Posted By subin_bala
#!/bin/sh find <source dir name> -mtime +365...
#!/bin/sh

find <source dir name> -mtime +365 | mv *.* <destination directory>
8,089
Posted By subin_bala
Hi Milo, 1) date '+TIME: %H:%M:%S' 2) I...
Hi Milo,

1) date '+TIME: %H:%M:%S'
2) I think you should try using signals

Regards,
Subin
25,306
Posted By subin_bala
Hi, Try this find <source dir name>...
Hi,

Try this

find <source dir name> -mtime +365 | mv *.* <destination directory>

Thnks and Regards,
Subin
4,970
Posted By subin_bala
awk/sed for parsing file
Hi All,

I have a log file like this

E Mon Oct 06 00:17:08 2008 xxx2 cm:10614 fm_pi2_svc_iptv_purchase.c:149 1:pin_deferred_act:10601:11:169:1223245028:16
pi2_op_svc_iptv_purchase...
5,203
Posted By subin_bala
My script(analyseTrafic.sh) is calling by another...
My script(analyseTrafic.sh) is calling by another script like this

temp="10.48.81.109 - - [18/Jul/2008:15:20:12 +0200] \"GET /cacti/settings.php?tab=general HTTP/1.1\" 200 14457...
5,203
Posted By subin_bala
Hi Radoluv, Thnks for ur valuable replies ...
Hi Radoluv,

Thnks for ur valuable replies

My next tasks are

getting the IP and USERAGENT value from the command line argument
call function isInFua ( which is internally calling some othe...
5,203
Posted By subin_bala
Its working fast for me.. thnks... But i am not...
Its working fast for me.. thnks...
But i am not getting the values of these arrays outside the awk ...
How i will get this value ?

Thnks in advance
5,203
Posted By subin_bala
After that some other functions will read the...
After that some other functions will read the values from these two arrays and compare the values which they have ....

Thanks and Regards,
Subin
5,203
Posted By subin_bala
Hi , Thanks for the reply My input file...
Hi ,
Thanks for the reply

My input file will be like this

3G ^Alcatel-OT-S920\/
3G ^Amoi.*A500
3G SPV.*C200
3G ^Levis_Original_3G
3G ASUS-P735
3G ^SIE-E71F\/
3G ^SIE-E71\/
3G...
5,203
Posted By subin_bala
using array inside awk
Hi All,

I have the following code sequence for reading some bulk file and moving the content to two different arrays.

while read data
do
THREEG_PATTERN=`echo $data | egrep "3G"`
...
2,112
Posted By subin_bala
Thanks a lot all ... Its working fine for...
Thanks a lot all ...

Its working fine for me........
2,112
Posted By subin_bala
Problem with awk while handling special charaters
Hi,

I have an application.xml file like
</dependency>
<artifactId>_AdminServicesEAR</artifactId>
<version>1.0.0-20080521.085352-1</version>
<context-root>oldvalue</context-root>...
Showing results 1 to 25 of 63

 
All times are GMT -4. The time now is 03:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy