Rename an User Group
Tagged with: command, group, Linux, rename, user
Tuesday, July 15th, 2008 11:13 PM
Rename a group
groupmod -n new_group_name old_group_name
Rename a group
groupmod -n new_group_name old_group_name
Replaces all instance of ‘<old string>’ with ‘<new sting>’ in all the files of the current directory.
perl -pi -e "s/<old string>/<new string>/g;" *
[tags]perl,command,rename,replace,string[/tags]
In this example, we will change all files with extension ‘.info’ to ‘.txt’.
rename .info .txt *.info
That should read as..
rename <replace this string> <with this string> <in all these files>
find . -name "*.info" -exec rename .info .txt {} \;
Those double quotes around *.info are important - don’t remove them mm-kay?
[tags]rename,multiple,command,linux,files[/tags]