-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Thursday 23 October 2003 15:34, Matthew Seaman wrote:
> On Wed, Oct 22, 2003 at 10:43:50PM -0600, Scott Gerhardt wrote:
[....skipped,,,,]
>
> The problem is that you have file/directory names like 'ROOF LAYOUTS'
> which contain spaces and possibly other filenames containing
> characters with syntactic significance to the shell.
>
> Try:
>
>     find $FILES_DIR -xdev -type f -iname "*.bak -print0 | \
>         xargs -0 tar --remove-files -cvzpf $TAR_DIR/bak_files_`date
> +%F`.tar.gz

It'll have some _bad_ features:
If ``find'' will found to many files (default number of arguments to be passed 
by xargs to the ``utility'' (the tar command) is 5000, the default size of 
the command line is MAX_ARG (2048 bytes) //from man xargs), then xargs will 
run the ``utility'' twice, or more times,... consider it will be a very small 
differenses in time, you'll get that the last tar invocation 'll replace your 
archievs with that time stamp.

IMHO.

WBR, CBuH.

- -- 

        CBuH. CG[CX] XVyGYjau [EMAIL PROTECTED], ICQ#70929413
        GnuPG(PGP) public key is: http://ccclike.chat.ru/my_public_key.asc

        
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/mf0L5Cj3gqxcdCoRAtvPAJ98ygwLGD1Oxprvl+TlOEEP99R7ygCeL8tR
L5loOfn5U3sJDVpRzVG4MvY=
=mJGX
-----END PGP SIGNATURE-----

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to