-copy mode and patterns
Lasse Kliemann <[email protected]> Thu, 30 Oct 2008 17:46:28 +0100
| Newsgroups | gmane.comp.archivers.star.user |
|---|---|
| Message-ID | <[email protected]> |
--===============0488866964== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z+pzSjdB7cqptWpS" Content-Disposition: inline --z+pzSjdB7cqptWpS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable One can use the following to copy all files matching pattern=20 '*.txt' from the subtree rooted at 'src' to the subtree rooted at=20 'dst': star -c -C src . | star -x -C dst pat=3D"*.txt" It is crucial that the 'pat=3D...' is placed _after_ the '-C ...'. Now, the following will _not_ work in the same way: star -copy pat=3D"*.txt" -C src . dst It will place a file 'src/foo.txt' in the current directory=20 instead of placing it into 'dst'. This seems to be the same=20 result as when doing a modification of the first construction: star -c -C src . | star -x pat=3D"*.txt" -C dst My question: is there a way to invoke '-copy' mode such that it=20 will have the same results as the first construction, where=20 'pat=3D...' is placed after '-C'? General comment: Having a compact form of expressing "copy all=20 files matching pattern ..." would be nice. It's also not so easy=20 when using Rsync. One has to do something like this: rsync -a --include "*.txt" --include "*/" --exclude "*" src/ dst --z+pzSjdB7cqptWpS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAEBAgAGBQJJCeTjAAoJEFYll6N4nhdvuRoQAOWYTrljgI8QlxWWhegk1479 5rTVmvWi8BtlsFbZLyxTQvrBLZcBiK+CEWT2vx2l1vtMXVDxL8KL/EmwvIdgq0NB sLnZf9Y3E++leL2AwFAp748E2sgme9jTEZLjRX4cl97LH1bWp7RHrWYUiSVBvRsv bMyQj0C9l4JcFbRGJJ4TSTgDOxDD3m7ad/WZE/bpajhgp3XNeJ2/KKjlE2VUd2P5 kJIgt5s7XLyADQpbCPorMV82SEi0+1XgT95foPSbPNNybZrfo5ftGtl6NVeHG77X /B3sUsn1WHX+T2sFNjDBFT92Og7N2yPO1YhrzK1+HUzCfQri1L6bDd8i70qCfsmK KLAZNTSrbT2KGl966zBX0IB2TPWojWLlxnQGKi2j9AxzE5MVUcSfiHCCYoTCzOu8 8kXmWN2sWP1V3IX9oH8ElpG244KEgvAtiYhaV4Yy3OC4ia5Ma7y7VxwUoFfXXn3m mpHYseJXDibQnIZrjE0m7tpzvt4ByamMbZrbv8FNsFyWylQBeKCs4/C5SJE94Iz7 z9FFesOpm0+VjsA+D53Iuf5JfeKJhL3pl7kolK/0tdKXt0NzKdAmN26Jul5U+BM9 f2u5bKFvGi0H4QTRaJD2EnJRCTULeuqIoccWVeeUgmplJ4UN6RiDxovKdPdFiQw2 jzBmWWmyptyy5LC4dVb8 =Lls6 -----END PGP SIGNATURE----- --z+pzSjdB7cqptWpS-- --===============0488866964== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Star-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/star-users --===============0488866964==--