Please help me in writing script
  Home FAQ Contact Sign in
comp.lang.awk only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.awk Profile…
 Up
Please help me in writing script         


Author: Injam
Date: Jul 2, 2008 07:14

Hi ,
I have the following two files.The characters 14-18 in file input2
will match 2nd field deleimited by ~ in file input1.

swadmin@tb142:/rangedoms1/working/
CRST_OVERLAY_ENHANCE_Analysis_RNGCTRL_DEV> cat input1
P00000012~00027
P00000027~00061
P00000270~00417
P00000271~00418
P00000272~00419
P00000273~00420
P00000274~00422...
Show full article (3.01Kb)
12 Comments
Re: Please help me in writing script         


Author: Dave B
Date: Jul 2, 2008 07:52

Injam wrote:
> Hi ,
> I have the following two files.The characters 14-18 in file input2
> will match 2nd field deleimited by ~ in file input1.
>
> swadmin@tb142:/rangedoms1/working/
> CRST_OVERLAY_ENHANCE_Analysis_RNGCTRL_DEV...
Show full article (2.72Kb)
no comments
Re: Please help me in writing script         


Author: Injam
Date: Jul 2, 2008 08:33

On Jul 2, 7:52 pm, Dave B wrote:
> Injam wrote:
>> Hi ,
>> I have the following two files.The characters 14-18 in file input2
>> will match 2nd field deleimited by ~ in file input1.
>
>> swadmin@tb142:/rangedoms1/working/
>> CRST_OVERLAY_ENHANCE_Analysis_RNGCTRL_DEV> cat input1
>> P00000012~00027
>> P00000027~00061
>> P00000270~00417
>> P00000271~00418
>> P00000272~00419
>> P00000273~00420
>> P00000274~00422
>> P00000275~00424
>> P00000276~00428
>> P00000277~00429
>> P00000278~00431
>> P00000279~00432 ...
Show full article (3.43Kb)
no comments
Re: Please help me in writing script         


Author: Dave B
Date: Jul 2, 2008 08:46

Injam wrote:
> Hi,
> I am facing the following issue when i tried to execute the above
> given code
> swadmin@tb142:/rangedoms1/working/
> CRST_OVERLAY_ENHANCE_Analysis_RNGCTRL_DEV> str($0,1,13) v
> substr($0,19)}' input1 input2 <
> awk: Not a recognized flag: -
> Usage: awk [-F Character][-v Variable=Value][-f File|Commands]
> [Variable=Value|File ...]
> swadmin@tb142:/rangedoms1/working/
> CRST_OVERLAY_ENHANCE_Analysis_RNGCTRL_DEV>

The above errorr message is a bit confused.
First, make sure you copied/pasted correctly. Then, if you are not using GNU
awk, omit the "--posix" flag. What system are you using?
Show full article (0.94Kb)
no comments
Re: Please help me in writing script         


Author: loki harfagr
Date: Jul 2, 2008 12:04

On Wed, 02 Jul 2008 07:14:55 -0700, Injam wrote:
> Hi ,
> I have the following two files.The characters 14-18 in file input2 will
> match 2nd field deleimited by ~ in file input1.
>
> swadmin@tb142:/rangedoms1/working/
> CRST_OVERLAY_ENHANCE_Analysis_RNGCTRL_DEV...
Show full article (3.82Kb)
no comments
Re: Please help me in writing script         


Author: Injam
Date: Jul 2, 2008 20:40

On Jul 3, 12:04 am, loki harfagr wrote:
> On Wed, 02 Jul 2008 07:14:55 -0700, Injam wrote:
>> Hi ,
>> I have the following two files.The characters 14-18 in file input2 will
>> match 2nd field deleimited by ~ in file input1.
>
>> swadmin@tb142:/rangedoms1/working/
>> CRST_OVERLAY_ENHANCE_Analysis_RNGCTRL_DEV> cat input1 P00000012~00027
>> P00000027~00061
>> P00000270~00417
>> P00000271~00418
>> P00000272~00419
>> P00000273~00420
>> P00000274~00422
>> P00000275~00424
>> P00000276~00428
>> P00000277~00429
>> P00000278~00431
>> P00000279~00432
>> P00000329~00483 ...
Show full article (5.33Kb)
no comments
Re: Please help me in writing script         


Author: Loki Harfagr
Date: Jul 3, 2008 01:19

Wed, 02 Jul 2008 20:40:50 -0700, Injam did cat :
> On Jul 3, 12:04 am, loki harfagr wrote:
>> On Wed, 02 Jul 2008 07:14:55 -0700, Injam wrote:
>>> Hi ,
>>> I have the following two files.The characters 14-18 in file input2...
Show full article (6.56Kb)
no comments
Re: Please help me in writing script         


Author: Injam
Date: Jul 3, 2008 04:10

On Jul 3, 1:19 pm, Loki Harfagr
wrote:
> Wed, 02 Jul 2008 20:40:50 -0700, Injam did cat :
>
>
>
>
>
>> On Jul 3, 12:04 am, loki harfagr wrote:
>>> On Wed, 02 Jul 2008 07:14:55 -0700, Injam wrote:
>>>> Hi ,
>>>> I have the following two files.The characters 14-18 in file input2
>>>> will match 2nd field deleimited by ~ in file input1.
>
>>>> swadmin@tb142:/rangedoms1/working/
>>>> CRST_OVERLAY_ENHANCE_Analysis_RNGCTRL_DEV> cat input1 P00000012~00027
>>>> P00000027~00061
>>>> P00000270~00417
>>>> P00000271~00418
>>>> P00000272~00419 ...
Show full article (7.29Kb)
no comments
Re: Please help me in writing script         


Author: Loki Harfagr
Date: Jul 3, 2008 07:35

Thu, 03 Jul 2008 04:10:00 -0700, Injam did cat :
> On Jul 3, 1:19 pm, Loki Harfagr
> wrote:
>> Wed, 02 Jul 2008 20:40:50 -0700, Injam did cat :
>>
>>
>>
>>
>>
>>> On Jul 3, 12:04 am, loki harfagr
Show full article (8.23Kb)
no comments
Re: Please help me in writing script         


Author: Injam
Date: Jul 8, 2008 03:51

On Jul 3, 7:35 pm, Loki Harfagr
wrote:
> Thu, 03 Jul 2008 04:10:00 -0700, Injam did cat :
>
>
>
>
>
>> On Jul 3, 1:19 pm, Loki Harfagr
>> wrote:
>>> Wed, 02 Jul 2008 20:40:50 -0700, Injam did cat :
>
>>>> On Jul 3, 12:04 am, loki harfagr wrote:
>>>>> On Wed, 02 Jul 2008 07:14:55 -0700, Injam wrote:
>>>>>> Hi ,
>>>>>> I have the following two files.The characters 14-18 in file input2
>>>>>> will match 2nd field deleimited by ~ in file input1.
>
>>>>>> swadmin@tb142:/rangedoms1/working/
>>>>>> CRST_OVERLAY_ENHANCE_Analysis_RNGCTRL_DEV> cat input1 ...
Show full article (8.74Kb)
no comments
1 2