如何將檔案數字讀出來運算? - Linux

By Kyle
at 2018-06-06T23:03
at 2018-06-06T23:03
Table of Contents
不才又再次遇到瓶頸,版上搜尋了一下似乎沒有相關的答案,
請問如何將一個文字檔內部的數字讀出來存於變數中,並且把它作乘除運算?
嘗試過的幾個算法如下連結,似乎都因為是字串所以無法運算
https://pastebin.com/pVDeeR0q
tmp_value.log文件檔格式如下:
https://pastebin.com/Ym6AhA8Q
--
請問如何將一個文字檔內部的數字讀出來存於變數中,並且把它作乘除運算?
嘗試過的幾個算法如下連結,似乎都因為是字串所以無法運算
https://pastebin.com/pVDeeR0q
tmp_value.log文件檔格式如下:
https://pastebin.com/Ym6AhA8Q
--
Tags:
Linux
All Comments

By Jake
at 2018-06-10T07:50
at 2018-06-10T07:50

By Kelly
at 2018-06-12T10:02
at 2018-06-12T10:02

By Ingrid
at 2018-06-13T03:40
at 2018-06-13T03:40

By Una
at 2018-06-15T07:02
at 2018-06-15T07:02

By Mason
at 2018-06-15T13:29
at 2018-06-15T13:29

By Una
at 2018-06-16T20:01
at 2018-06-16T20:01

By Delia
at 2018-06-21T14:20
at 2018-06-21T14:20

By Charlie
at 2018-06-22T20:12
at 2018-06-22T20:12

By Poppy
at 2018-06-26T01:30
at 2018-06-26T01:30

By Wallis
at 2018-06-28T06:51
at 2018-06-28T06:51

By Oliver
at 2018-07-01T07:47
at 2018-07-01T07:47

By Barb Cronin
at 2018-07-04T23:20
at 2018-07-04T23:20
Related Posts
Ubuntu 18.04 幾個問題請教

By Susan
at 2018-06-06T15:37
at 2018-06-06T15:37
linux系統查尋實體硬碟大小及顆數

By Iris
at 2018-06-05T12:18
at 2018-06-05T12:18
android8.0連線到l2tpd server

By Robert
at 2018-06-04T19:07
at 2018-06-04T19:07
使用 FTP 下載資料夾?

By Aaliyah
at 2018-06-04T15:52
at 2018-06-04T15:52
我可以用linuxmint 來當server 嗎?

By Robert
at 2018-06-04T15:11
at 2018-06-04T15:11