| Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | About BLU |
David Kramer <david at thekramers.net> writes:
> Fear is the enemy of knowledge and productivity.
>
> find / -gid $oldgid | xargs chgrp $newgrp
Except that this will fail if you have files with funny characters (like
quotes) in them. Use -print0 with find, and the -0 option to xargs.
But, to be fair, I think your second choice would also work.
> If you cannot conquer your fears,
>
> find / -gid $oldgid -exec chgrp $newgrp {} \;
>
> Untested, but 99% sure this will work, or at least not get you arrested.
jj