Thank you so much Jeff,
It works!
Best regards,
Onur
Jeff Pang wrote:
-Original Message-
From: Onur Sirin <[EMAIL PROTECTED]>
i get the following error:
Use of uninitialized value in scalar chomp at xxx.pl line 12.
Use of uninitialized value in concatenation (.) or string at xxx.pl
-Original Message-
>From: Onur Sirin <[EMAIL PROTECTED]>
>i get the following error:
>Use of uninitialized value in scalar chomp at xxx.pl line 12.
>Use of uninitialized value in concatenation (.) or string at xxx.pl line 12.
Please try this:
$ cat 1.txt
aaa
bbb
xxx
$ cat 2.txt
ccc
ddd
Jeff Pang wrote:
-Original Message-
From: Onur Sirin <[EMAIL PROTECTED]>
Sent: Jan 24, 2008 10:50 PM
To: Jeff Pang <[EMAIL PROTECTED]>
Cc: beginners@perl.org
Subject: Re: merging the columns
What if is there another file (fh3) to merge with fh1 and fh2?
How s
-Original Message-
>From: Onur Sirin <[EMAIL PROTECTED]>
>Sent: Jan 24, 2008 10:50 PM
>To: Jeff Pang <[EMAIL PROTECTED]>
>Cc: beginners@perl.org
>Subject: Re: merging the columns
>
>What if is there another file (fh3) to merge with fh1 and fh2?
>How s
d
xxx yyy
Hope it helps.
-Original Message-
From: Onur Sirin <[EMAIL PROTECTED]>
Sent: Jan 24, 2008 9:57 PM
To: beginners@perl.org
Subject: merging the columns
Hi all,
i have two snmp-walk commands and i want to merge its output in one file.
For example,
_First command's ou
ose $fh1;
close $fh2;
print @out;
$ perl t1.pl
aaa ccc
bbb ddd
xxx yyy
Hope it helps.
-Original Message-
>From: Onur Sirin <[EMAIL PROTECTED]>
>Sent: Jan 24, 2008 9:57 PM
>To: beginners@perl.org
>Subject: merging the columns
>
>Hi all,
>
>i have two snm
Hi all,
i have two snmp-walk commands and i want to merge its output in one file.
For example,
_First command's output:
_aaa
bbb
xxx
_Second command's output:
_ccc
ddd
yyy
How can i merge these outputs like
aaa ccc
bbb ddd
xxx yyy
Thanks,
Onur
--
Onur Sirin
IT Department, Systems Specialist
S