【发布时间】:2017-12-21 20:25:22
【问题描述】:
除了 head 之外,还有什么可以将我的 find 命令的结果限制为 50?
find -L $line | head 50 | -exec ls {} > $a$(basename $line) \;
上面的东西不起作用。我想限制我的输出,因为它需要很长时间才能完成任务并降低我的计算机性能。 :
【问题讨论】:
-
head -n50而不是head 50。或者您只是在问题中错过了它? -
@ViktorKhilin 我在我的代码中错过了这一点。