makefile for loop 問題 - Linux
By Megan
at 2021-08-04T16:25
at 2021-08-04T16:25
Table of Contents
想請教一下,如果有這樣一個text file,
Text.txt:
a1 b1 c1
a2 b2 c2
...
a100 b100 c100
要怎麼樣在makefile的 for loop 當中用三個變數分別代表 a1~a100 b1~b100 c1~c100呢?
用 for i in $$(cat Text.txt)這樣的寫法可以取出裡面的字串
但這樣沒辦法在一次迴圈中同時取得 a1 b1 c1
不得有沒有辦法在一次迴圈中同時取得a1 b1 c1的字串呢?
--
Text.txt:
a1 b1 c1
a2 b2 c2
...
a100 b100 c100
要怎麼樣在makefile的 for loop 當中用三個變數分別代表 a1~a100 b1~b100 c1~c100呢?
用 for i in $$(cat Text.txt)這樣的寫法可以取出裡面的字串
但這樣沒辦法在一次迴圈中同時取得 a1 b1 c1
不得有沒有辦法在一次迴圈中同時取得a1 b1 c1的字串呢?
--
Tags:
Linux
All Comments
By Hedwig
at 2021-08-05T15:47
at 2021-08-05T15:47
By Emily
at 2021-08-08T06:25
at 2021-08-08T06:25
By Hardy
at 2021-08-08T15:28
at 2021-08-08T15:28
By Quintina
at 2021-08-09T15:28
at 2021-08-09T15:28
Related Posts
shellscript tar問題
By Faithe
at 2021-07-31T10:55
at 2021-07-31T10:55
shellscript tar問題
By Susan
at 2021-07-31T07:54
at 2021-07-31T07:54
fcitx在chrome倒退會吃字
By Erin
at 2021-07-28T13:52
at 2021-07-28T13:52
Linux 設定 os7 window group
By Cara
at 2021-07-28T08:12
at 2021-07-28T08:12
抓不到麥克風問題
By Ina
at 2021-07-27T16:16
at 2021-07-27T16:16