I have a big tab delimited file with 3 columns looks like this:
All I want to do is re-scaling the third column to be between 0-1. Which means that the highest valu in 3rd column will be 1 and the lowest closest to 0 and the rest in between.
Then sorting it by first and second columns.
Desired output:
or
I appreciate if you can help me with this perl script (or shell if it's easier for you, I'm kinda learning both).
Dear alister,
I appreciate that you try not to give a fish!
I should have replied much earlier... but then I managed to write the script and didn't update the thread.
you have always helped me and I am thankful once more!
Here is what I wrote which seems to work:
Cheers!
Quote:
Originally Posted by alister
Have you put forth any effort at all? If so, show us what you've tried so far.
Regards,
Alister
---------- Post updated at 01:02 PM ---------- Previous update was at 12:55 PM ----------
Also, the highlighted value in your output is almost certainly wrong.
Hello masters, this is difficult to explain and maybe complicated to implement...looks beyond what I taught myself (from this forum), some help is greatly appreciated.
I have a base file
a1 10
a2 15
a3 20
a4 21
I have a non-base file
a1 170
b12 175
c12 180
d12 190
a2 ... (3 Replies)
Hi all,
I have written a perl code and stored the data into Data structure using Data::Dumper module.
But not sure how to retreive the data from the Data::Dumper.
Eg.
Based on the key value( Here CRYPTO-6-IKMP_MODE_FAILURE I should be able to access the internal hash elements(keys) ... (1 Reply)