我想要做的是复制字典范围内的文件。
文件示例:
-rw-r--r-- 1 root root 15276 Oct 5 2004 a2ps.cfg
-rw-r--r-- 1 root root 2562 Oct 5 2004 a2ps-site.cfg
-rw-r--r-- 4 root root 4096 Feb 2 2007 acpi.txt
-rw-r--r-- 1 root root 48 Feb 8 2008 adjtime.jpg
-rw-r--r-- 4 root root 4096 Feb 2 2007 alchemist.jpg
Run Code Online (Sandbox Code Playgroud)
使用示例:
asps.cfg
到acpi.txt
a2ps-site.cfg
到adjtime.jpg
a2ps-site.cfg
到alchemist.jpg
那么有没有办法将一系列文件(从文件名 X 到文件名 Y)复制到一个目录中?
喜欢: cp filenameX ... filenameY destination/
cp ×1