Search Results

Search: Posts Made By: Higgo
1,752
Posted By Aia
This is a guess based on my understanding of your...
This is a guess based on my understanding of your posts. Maybe there's enough information in it for you to fix what you want. Or perhaps, you can come back with more information about where it fails...
1,752
Posted By RudiC
Unfortunately, although asked twice to become...
Unfortunately, although asked twice to become more precise and detailed in your specification, you still leave a wide field open for guesses from our side...

As a first hint to achieve your...
1,752
Posted By RudiC
Please post input and output samples, and the...
Please post input and output samples, and the logics/algorithms that connect them. What you say in post#3 doesn't match your desired output from post#1.
1,119
Posted By RudiC
I can't see a linear relationship between the...
I can't see a linear relationship between the numbers input and the node numbers assigned:
1000 --> 1
1100 --> 2
1200 --> 3
1300 --> 4
1500 --> 5
1700 --> 6Is it possibly the order of...
1,119
Posted By RavinderSingh13
Hello Laslzo, Following codes may help you...
Hello Laslzo,

Following codes may help you in same.

awk -vNODE=1000 '{for(i=1;i<=NF;i++){DIFF=$i-NODE;if(DIFF>=0){$i="NODE" DIFF/100+1}}} 1' Input_file

NODE1 NODE1
NODE1 NODE2
NODE1...
1,286
Posted By RudiC
Try also awk 'FNR==NR {A[$1];next} FNR in A'...
Try also awk 'FNR==NR {A[$1];next} FNR in A' file1 file2
1,286
Posted By RavinderSingh13
Hello Laszlo, Following may help you in...
Hello Laszlo,

Following may help you in same.

awk 'FNR==NR{A[NR]=$0;next} ($0 in A){print A[$0]}' file2 file1


Thanks,
R. Singh
Showing results 1 to 7 of 7

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