If all the files you want to copy are in the file{number}{othertext} , you can use something like:
cp ../dir5/dir4/dir3/dir2/file[0-9]* .
Note that this will copy file5 , but also copy file0abc .
If you want to copy ONLY these four files (and not {other texts}), you can use:
cp ../dir5/dir4/dir3/dir2/file[1-4] .
Note that although this looks like part of a regular expression, it is not.
ghoti Mar 28 '12 at 21:24 2012-03-28 21:24
source share