Search Results

Search: Posts Made By: jaduks
9,313
Posted By jaduks
$ awk '{print...
$ awk '{print $1,"\t",(($2+$3)/2)-x,"\t",(($2+$3)/2)+x,"\t",$4,"\t",$5}' x=500 file.txt
cX 165112764 165113764 27 96.7
cX 165142764 165143764 14 53.73
cX 1.65325e+08 ...
9,313
Posted By jaduks
Hi, could you please provide few of sample lines...
Hi, could you please provide few of sample lines from your input file.
9,313
Posted By jaduks
Use printf: e.g. $ awk -F ":"...
Use printf:

e.g.

$ awk -F ":" '{sum+=$NF} END {print sum}' data.txt
1.27084e+10

$ awk -F ":" '{sum+=$NF} END { printf ("%0.0f\n", sum)} ' data.txt
12708429091

$ awk -F ":" '{sum+=$NF}...
Showing results 1 to 3 of 3

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