【发布时间】:2012-04-06 02:23:26
【问题描述】:
您好,我正在尝试在远程机器上执行以下命令,我该怎么做
ssh login.com find /nfs/repo/ -name ".user_repo.log" | \
xargs cat | awk '{$NF=""; print $0}' | \
sed "1i Owner RepoName CreatedDate" | column -t
我收到以下错误消息
cat: /nfs/repo/new1/info/.user_repo.log: No such file or directory
cat: /nfs/repo/new2/info/.user_repo.log: No such file or directory
cat 命令试图在本地系统上查找文件,而这些文件存在于远程计算机上。我该如何处理这个
【问题讨论】:
标签: linux sed awk find command