how to remove decimal place in shell script.i am multiplying MB with bytes to get value in bytes .I need to remove decimal place.
ex:- 196.3*1024*1024 205835468
Use printf:
printf %.0f $float
This will perform rounding. So if float is 1.8, it'll give you 2.
float
1.8
2