Hi,
I have not getting result, so I am describing my problem in deep.
=================================================================
MY QUERY :
>HUMAN1 ||elongation factor 2|HUMANA 43|||Manual
>HUMAN2 |||elongation factor 5|HUMANA 87|||Manual
>HUMAN3 |elongation factor 1|HUMANA 68|||Manual
.
.
.
.
AND SO ON...
I WANT :
elongation factor 2
elongation factor 5
elongation factor 1
=================================================================
MY PERL SCRIPT :
print "enter yr keyword \n";
$ok1=<stdin>;
chomp($ok1);
system("grep '^>' ".$ok1.".txt >".$ok1."_head.txt");
#[ NOTE
Above system part is working for 'grep' command and i am getting result in
# ".$ok1."_head.txt"). ]
my $x=qw(perl -na -F'/\|+/' -e 'print "$F[1]\n"' ".$ok1."_head.txt" >".$ok1."6.txt");
system($x);
# [ NOTE : this will create a file ".$ok1."6.txt" But it is empty, it means that it
# is not working ]
Would anyone help me?