Hi ,
I need a small help .
I have one script with these commands.But I think perl can do it
efficiently.
What will be the perl equivalent for this -
grep UNBIND $file|tr "=" " "|awk '{print $4}' > /tmp/con
for i in `cat /tmp/con`
do
ip=`grep $i $file |grep from |awk '{print $8}'`
op=`grep $i $fil
only in that file -
01/12 Data1 Data2 Data3
01/13 Data1 Data2 Data3
...
01/18 Data1 Data2 Data3
Thanx
> -Original Message-
> From: Anand, Pankaj [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, January 23, 2002 11:57 AM
> To: 'Beginners (E-mail)
> Sub
Hi ,
I want to make a perl script which can take the input from a file which is
in this form -
name1
name2
I want to change it to this format -
definition1 name1
definition2
definition3
definition4:name1
definition1 name2
definition2
definition3
definition4:name1
and so
Hi All ,
I am beginer to perl can anybody help me ..?
I am having the output of some data in a file in the form as -
currentconnections=326
totalconnections=37396
dtablesize=1024
readwaiters=322
opsinitiated=144666
opscompleted=144665
entriessent=1355694
bytessent=1547759193
currentconnections=3
> I have to make a script which will read a log file and find for error ,
> the string is like "err=0" if the no. is > 0 then I want the first coloumn
> of line that's time stamp redirected to some other file or I can define
> some RE that if err=2 , do this.
>
> Secondly the log file is rotaion