我有许多名为 note1.txt, note2.txt, note3.txt, ....
的文件说直到note100.txt
.我只想复制文件直到 note50.txt
到另一个文件夹。如何在终端中实现这一点?
最佳答案
最简单的方法(恕我直言)是使用外壳扩展:
$ cp note{1..50}.txt /path/to/target
关于linux - 查找文件直到一个数字并执行操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60511913/