Morning all,
Yes me again...still long way to go....I did tried to figure it out..but got no where...
Here is what I want to do.
I am doing in a while loop.
while ( $fs = <FS_LIST> ) {
chomp ($fs);
$line=`/nas/bin/fs_replicate -info $fs |egrep current_delta` ;
print "$fs.$line\n" ;
}
close (FS_LIST);
My command output is
<text1> = <Number1>
<text2> = <Number2>
for each $fs. Also for some $fs output is blank line.
I want to attach my $fs to each of the output line. Since I have two line output, $line is asssingmed only to entire string. and I get...
$fs.<text1> = <Number1>
<text2> = <Number2>
I am following O'Relly book (Learning Perl.) ,I saw example for %word which has only 2 clmns. in my case I have 3 clmns.
Thanks,
Yes me again...still long way to go....I did tried to figure it out..but got no where...
Here is what I want to do.
I am doing in a while loop.
while ( $fs = <FS_LIST> ) {
chomp ($fs);
$line=`/nas/bin/fs_replicate -info $fs |egrep current_delta` ;
print "$fs.$line\n" ;
}
close (FS_LIST);
My command output is
<text1> = <Number1>
<text2> = <Number2>
for each $fs. Also for some $fs output is blank line.
I want to attach my $fs to each of the output line. Since I have two line output, $line is asssingmed only to entire string. and I get...
$fs.<text1> = <Number1>
<text2> = <Number2>
I am following O'Relly book (Learning Perl.) ,I saw example for %word which has only 2 clmns. in my case I have 3 clmns.
Thanks,