Search Results

Search: Posts Made By: newstart
7,648
Posted By newstart
Thank you guys. awk '$8=($5-$7) OFS $8' |...
Thank you guys.

awk '$8=($5-$7) OFS $8' | sort -g -k8,1 | cut -d '' -f2-

Above command worked for me.

Will follow codetags in future.
7,648
Posted By newstart
versh99 I tried your command almost there,...
versh99

I tried your command almost there, however sort is not proper. There are difference values of "-8.1e-11" (in 5th row) after
"-9e-12" and followed by "-8e-12" as you can see below. Also...
7,648
Posted By newstart
awk sort based on difference of fields and print all fields
Hi

I have a file as below

<field1> <field2> <field3> ... <field_num1> <field_num2>

Trying to sort based on difference of <field_num1> and <field_num2> in desceding order and print all...
Showing results 1 to 3 of 3

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