Search Results

Search: Posts Made By: jmzcal
26,758
Posted By jmzcal
this seems to work
If I use:
awk '{print log($2)/log(2)}'

this prints the value in log base 2. Had to look up some log transformations.
26,758
Posted By jmzcal
Use awk to log transform
Hello. I'm trying to use the awk command to convert certains fields to lgo base 2, not base 10.

I'm trying command lines like:

awk '$2 $5 $7 {print log(2)($2), log(2)($5), $7) filein.txt >...
Showing results 1 to 2 of 2

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