Categories
Linux Mastering Development

dividing specific colunm numbers using shell script

I have a text file, like this

  8   15.890  1535.96  2281.44
  8   17.890  1538.96  2281.40
  8   19.890  1542.60  2282.08
  8   21.900  1545.96  2282.32
  8   23.900  1550.64  2282.40
  8   25.900  1554.52  2281.68
  8   28.000  1559.36  2281.88
  8   30.090  1563.56  2281.32
  8   32.190  1568.64  2280.80
  8   34.280  1573.12  2280.56

I want to keep the first two column as it is, the third and forth column, divided by 4. How can I do it? Thanks in advance!

Leave a Reply

Your email address will not be published. Required fields are marked *