ZKX's LAB

shell字符串拼接 shell脚本 命令拼接

2020-10-08知识5

shell脚本中如何把输入传给子脚本或者子命令 用命名管道啊。bin/bashif。e pipe];thenmkfifo pipefifunction father(){while read LINEdoecho$LINEdone}function son(){while read subLINEdoecho from pipe:$subLINEdone}sonson后台从管道pipe中读取,你的子shell也用这种方法运行。father>;./pipefather 前台写入到pipe管道中

我想知道SHELL命令下字符串拼接 号两边不能有空格执行命令需要用反引号括起来 `grep-c\"\"3s.txt`

我有一个shell脚本,想把输出结果写到另一个文件中,请问脚本应该怎么添加命令? 举个例子:echo\"hello,world\">;>;b.txt 这是第一个命令的输出ifconfig>;>;b.txt 这是第二个命令的输出表示在文件末尾追加

#linux脚本#shell#table#varchar#shell数组

随机阅读

qrcode
访问手机版