-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Cameron Simpson wrote: | So if I were writing the above job I'd go: | | for dir in */. # won't match files - saving some wasted effort in the loop | do ( cd "$dir" || exit 1 | for tarf in *.tar | do [ ! -s "$tarf" ] || tar xf "$tarf" | done | ) | done
Thanks - learn something new every day. Referring to my Advanced Bash Scripting Guide to reference the function of parens tho. Need to get into the habbit of using double-pipe more often too. Rgds, - -Rick - -- Rick Johnson, RHCE - [EMAIL PROTECTED] Linux/WAN Administrator - Medata, Inc. PGP Public Key: https://mail.medata.com/pgp/rjohnson.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (MingW32) Comment: Signed and/or encpryted for everyone's protection. iEYEARECAAYFAj4BAuUACgkQIgQdhlSHZgPD6gCePRUuBk2Bzm1IzwEKfBlwVZna fkcAoNyHC8BOO7nF6+z7YI/M0vXUC6cx =fqMi -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list