设置包含文件内信息的变量
我是 shell 编程新手,我需要一些有关此代码的帮助...
Buildname= test
echo $Buildname > lbuild
cbuild < lbuild
echo $cbuild
因此 echo $cbuild 必须显示创建的文本文件中的第一行。
有人可以帮我吗?
I'm new programming in shell and I need some help with this code...
Buildname= test
echo $Buildname > lbuild
cbuild < lbuild
echo $cbuild
So echo $cbuild must display the first line in the text file created.
can someone help me with that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用阅读
Use read
我认为您要么需要在
Buildname = test
中的测试周围加双引号,要么脚本中有更多内容。 :-)我冒昧地假设我知道你需要什么,这是我的建议:
I think you either want double quotes around the test in
Buildname = test
or there is more to the script. :-)I took the liberty of assuming I know what you need, here's my swag at it: