-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 19-Sep-2002/09:18 -0500, Steve Buehler <[EMAIL PROTECTED]> wrote: >Change ownership of all files in a directory that are owned by a specific >user, leaving files that are not owned by that user alone. It needs to >start in that directory and go through ALL sub directories of the >directory that I am starting in and do the same thing without having to >name all of the subdirectories.
Starting in the current directory: find . -user olduser -group oldgroup | xargs chown newuser.newgroup >For another script, I would like it to change permissions on all files >that end in a certain extention(s). It should work in the same way >though. Meaning that it will go through all sub directories and sub >directories of the sub directories, etc... man find Tony - -- Anthony E. Greene <mailto:[EMAIL PROTECTED]> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D AOL/Yahoo Chat: TonyG05 HomePage: <http://www.pobox.com/~agreene/> Linux: the choice of a GNU Generation. <http://www.linux.org/> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Anthony E. Greene 0x6C94239D <[EMAIL PROTECTED]> iD8DBQE9igavpCpg3WyUI50RAlo6AJ4wUe+I2/GaOJbKs218E8yrnSCxxACg+iU3 GZr4MnnazAUiFXH1lObaJkI= =q9GG -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list