Search Results

Search: Posts Made By: Autumn Tree
2,538
Posted By Autumn Tree
Thanks you guys rock!
Thanks you guys rock!
2,538
Posted By Autumn Tree
printing each line in a file X times
This is probably simple but I would like to print every line in a file 5 times like this:

awk 'NR' mens_csv.tab

Dub Tank 53%Hemp/42%Cotton/5%Lycra Jersey Dark Green 0 $22.50
Dub...
3,550
Posted By Autumn Tree
d'oh - should've tried that first... thanks...
d'oh - should've tried that first... thanks m8!!!
3,550
Posted By Autumn Tree
Still doesn't work like this - I get no output? ...
Still doesn't work like this - I get no output?

[root@lab02 tmp]# /usr/xpg4/bin/awk 'NR==FNR{_[$1]=$2;next}$2=$2 FS _[$1]' gdl dkl
[root@lab02 tmp]#

files look like this:

gdl:
15. 392
19....
3,550
Posted By Autumn Tree
@radoulov: unfortunately I didn't have...
@radoulov:

unfortunately I didn't have access to my sun box yesterday - and now when I test it I get this:

/usr/xpg4/bin/awk: syntax error Context is:
>>> NR == FNR {_[$1] = $2 next ...
3,550
Posted By Autumn Tree
yogi_raj: I think you didn't understand the...
yogi_raj: I think you didn't understand the question. join is not the solution. the above awk statement is... thanks for the effort!
3,550
Posted By Autumn Tree
Thank you - works perfectly!!!
Thank you - works perfectly!!!
3,550
Posted By Autumn Tree
Compare 2 files yet again but with a twist
Ok so I have a file which contains 2 columns/fields and I have another file with 2 columns. The files look like:

file1:
1 33
5 345
18 2
45 1
78 31

file2:
1 c1d2t0
2 c1d3t0
3 c1d4t0
4...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 03:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy