Hi all, I am moving my users home directoires from one server to another and in the process standardising usernames such that about 300 need changing. Once I hav copied over the directories (cp -a) I will then need to rename some of the directories. I have a csv file with the format "oldname,newname" and a script to read it:
#!/bin/bash while read name1 name2; do mv $name1 $name2 # done < /home/OLMC/snap/rename.txt I have tested the script by changing the action to echo name1 echo name2 and it worked fine. Can't test this easily without going live, whilst it would not be a disaster (just a PITA) if it goes wrong is there anything glaringly obvious that I have done wrong here? -- Simon Bryan IT Manager OLMC Parramatta -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
