Search Results

Search: Posts Made By: Scrutinizer
1,304
Posted By Scrutinizer
Try: awk '{print $1/$2}' OFMT="%.2f" file or ...
Try:
awk '{print $1/$2}' OFMT="%.2f" file
or
awk '{printf "%.2f\n",$1/$2}' file

--
And combined with the join suggested earlier (assumes sorted files)
join -12 -22 -o 1.1,2.1,0 file1 file2 |...
Showing results 1 to 1 of 1

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