我想得到查找输出的最后两行并将它们复制到某处.我试过了
find . -iname "*FooBar*" | tail -2 -exec cp "{}" dest \;
但输出是尾部的"无效选项--2".
此外,我的文件或目录名称包含空格.
linux bash pipe
bash ×1
linux ×1
pipe ×1