如何通过字符串“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