我希望让 scp 与管道一起工作,比如
firstlove@chenli ~/Downloads $ ls -liart | tail -n5 | grep 0001
51384329 -rw-r--r-- 1 firstlove firstlove 1440 Oct 31 13:02 0001-add-UNA_PRINT-for-unalign-access-info.patch
51384385 -rw-r--r-- 1 firstlove firstlove 3028 Oct 31 13:02 0001-support-new-em_machine.patch
firstlove@chenli ~/Downloads $ scp `ls -liart | tail -n5 | grep 0001` wuxi-jump-128:/tmp
[email protected]'s password:
[email protected]'s password:
ls -liart | tail -n5 | grep 0001: No such file or directory
但它提示“没有这样的文件或目录”,还有其他解决方法吗?