I hope to make scp work with pipe, like
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
But it promotes "No such file or directory", is there other workaround?