Scott,
>Would this be the correct way? Is it suggested that I would tar then move,
>is this quicker & safer?
>
Say three times after me CPIO CPIO CPIO!
Cpio was designed to do this stuff, for some reason it seems to be out
of favour with Linux users
who seem to prefer convulted scripts based on xargs and copy -R.
$ mkdir /new/dir
$ cd /old/dir
$ find . -print | egrep -v '(???????G.DAT$|???????Z.DAT$)' | cpio
-pdmuv /new/dir
You can replace egrep with whatever magic filtering program you would
like such as sed awk
or a perl script that filters the passed in file names so that they only
include the ones that you
want. You don't have to use find either, cpio doesn't care all it
requires is a list of file names
relative to the current directory that you would like copied.
HTH
Pete
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug