我有一个在脚本上使用的命令,并且运行良好。我需要在该命令的结果中附加一些文本。
命令:
ssh target_server "/home/directory/somescript.sh" | tail -1
Run Code Online (Sandbox Code Playgroud)
我想在上面命令的结果上添加一些文本。
结果示例:
ssh target_server "/home/directory/somescript.sh" | tail -1
Run Code Online (Sandbox Code Playgroud)
示例期望结果:
This is the original result
Run Code Online (Sandbox Code Playgroud)