What I want to do is to copy files within a lexicographic range.
Example of files:
-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
Example of use:
- Copy the 3 files from
asps.cfg
toacpi.txt
- Copy the 3 files from
a2ps-site.cfg
toadjtime.jpg
- Copy the 4 files from
a2ps-site.cfg
toalchemist.jpg
So is there any way to copy a range of files (from filename X to filename Y) into a directory?
Like: cp filenameX ... filenameY destination/