如何通過字符串「BUILD#」循環並僅使用bash腳本打印具有以下字符串「http://」的行? 或我們如何爲字符串「BUILD」 之間有一切input.txt中在文本文件中循環匹配的字符串
BUILD #1
http://a
b
http://c
BUILD #2
http://d
http://c
http://g
BUILD #3
g
http://h
http://f
e
http://t
所需的輸出
編者按:作爲證明被接受了什麼樣的答案,這個問題竟然不是要生產已過濾輸出,但有選擇地處理行知道封閉的方式, 如相應的前述BUILD #<n>
行暗示。
BUILD #1 (loop)
http://a
http://c
add another loop to do something with http://
BUILD #2 (loop)
http://d
http://c
http://g
add another loop to do something with http://
BUILD #3 (loop)
http://h
http://f
http://t
add another loop to do something with http://
input.txt中有合併請求的列表。
BUILD #1
take the link (integrate)
take the link (integrate)
kick of a build (build command)
BUILD #2
take the link (integrate)
take the link (integrate)
take the link (integrate)
kick of a build (build command)
and so on
- 非常感謝您的詳細解釋.. – Mihir