有文件 A、B、C。我想连接文件 A、B 和 C(跳过 C 的第一行)。然后将它们作为输入发送到 myProgram。我怎样才能在shell脚本中写这个?
我是这么写的
cat A > file
echo >> file //want to start all contents in new line
cat B >> file
tail -n+2 C >> file
./myProgram < file
Run Code Online (Sandbox Code Playgroud)
但我不知道如何连接它们并发送到程序而不生成文件