Re: one line perl

2003-01-24 Thread John W. Krahn
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

RE: one line perl

2003-01-24 Thread Aimal Pashtoonmal
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

Re: ONE LINE PERL COMMAND

2001-06-04 Thread Jeff Pinyan
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

Re: ONE LINE PERL COMMAND

2001-06-04 Thread Paul
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

Re: ONE LINE PERL COMMAND

2001-06-04 Thread John Joseph Trammell
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

ONE LINE PERL COMMAND

2001-06-04 Thread Pedro A Reche Gallardo
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