Guys,

Need your help here on the task automation. Basically here is what I want to
do.

1. I have around 1000 folders that the name of the folders is tied to the
username, eg. folder gilbert belong to user gilbert, etc.
2. Inside these 1000 folders, there is a sub folder and a file called
win.ini that contained a lot of parameters. All users have the same file and
maybe same contents.
3. I want to do a backup copy of win.ini to eg. win_backup.ini.
3. After backup, I need to change certain parameters inside win.ini for
every folders, eg. homes=p:\windows\testing to homes=c:\windows\testing.
4. In addition to that I need to append 2 new lines at the end of the file
and pre checking must be done, if the 2 lines are there then don't need to
append.
5. Lastly, I want to change all the 1000 folders, including sub-folders
ownership to the owner's name, eg. change ownership of folder gilbert\* to
gilbert.

Can the above task be automated using shell script or advanced programming
language, eg. Java is needed?

Please help. Thanks.

Cheers,
J.Lo
_______________________________________________
Slugnet mailing list
[email protected]
http://www.lugs.org.sg/mailman/listinfo/slugnet

Reply via email to