Discussion: awk help-simple doubt
Afficher un message
Vieux 16/03/2008, 20h44   #3
Ed Morton
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: awk -simple doubt



On 3/15/2008 2:37 PM, varkey@changingideas.com wrote:
> hey guys,
>
> i hav got two files as follows
>
> file1.txt
>
> bss:1
> bss:2
> bss:3
> bss:4
> bss:5
>
>
> file2.txt
> db1
> db2
> db3
> db4
> db5
>
>
> i m reading the first file using a for loop
>
> so when i read the first line in file1.txt (ie bss:1) i need to get
> the corresponding one in file2 (ie. db1)
>
> like wise till db5 when i reads bss:5
>
> how can i implemnt it usig an awk with in a for loop?
>
> thanks in advance
>


It sounds like all you really want is:

paste file1 file2

If not post a rationale and some expected output for .

Ed.

  Réponse avec citation
 
Page generated in 0,04457 seconds with 9 queries