Aimal Pashtoonmal wrote:
>
> Hi,
Hello,
> I am trying to get the following one liner to work, but the figure
> from the subtraction is printed after column 6 and column 7 and 8 are
> discarded. What I am trying to do is create an extra column
> after column 6 for the subtraction and retain t
Hi,
I am trying to get the following one liner to work, but the figure
from the subtraction is printed after column 6 and column 7 and 8 are
discarded. What I am trying to do is create an extra column
after column 6 for the subtraction and retain the last two columns:
perl -F'\t' -lane 'pri
On Jun 4, Pedro A Reche Gallardo said:
>perl -ne 'BEGIN{$/=">"}if(/^\s*(\S+)/){open(F,">$1")|| warn"$1 write
>failed:$!\n";chomp;print F ">", $_}'
>This command will take a file like this:
>name1: anything
kdkdkkdkk
dkdkkdkdk
>name2: anything
slkslsksksl
>and convert it into two files, named
name1
> kdkdkkdkk
> dkdkkdkdk
>
> in the file name1
>
> >name2
> slkslsksksl
>
> in the file name2.
>
> Here is the question, can anyone help me to decipher this one-line
> perl command and put into a perl script.
> Thanks for your help.
#!/usr/bin/env pe
e1
> kdkdkkdkk
> dkdkkdkdk
>
> in the file name1
>
> >name2
> slkslsksksl
>
> in the file name2.
>
> Here is the question, can anyone help me to decipher this one-line perl
> command and put into a perl script.
> Thanks for your help.
Okay, I'll
kdkkdkdk
>name2: anything
slkslsksksl
and convert it into two files, named as name1 and name2, and containing
the following information
>name1
kdkdkkdkk
dkdkkdkdk
in the file name1
>name2
slkslsksksl
in the file name2.
Here is the question, can anyone help me to decipher this