I have a small requirement here. I have a directory with a lot of files. There are certain number of files which belong to X group and certain number of files which belong Y group. Now, my requirement is to convert the files belonging to X group to Y group.
How quickly this can be done ? I assuming I might have to use xargs command. Please help.
This should take care of it:
Obviously, make sure you replace
X_GNAMEwith the old group name, andY_GNAMEwith the new group name, and possibly.with the base path, if you’re not in the correct directory.See the
findman page for more information.