[ accidentally replied this only to sender, not to the group - resending]

Chen wrote:
> A quick think gives these scripts, but they need some
> "trial-and-error". Copy the whole directory to another place and try
> on the copy.
> 
> 3. for i in *; do cp $i/win.ini $i/win_backup.ini; done

And make sure you only run this once, or you will overwrite the backup.
it may be better to add a datestamp to the backup:

> 3. for i in *; do cp $i/win.ini $i/win_backup_`date +%y%m%d%H%M%S`.ini; done

so that backups are not destroyed. You can always clean up these later
and keep only the latest..

> 3. for i in *; do cat $i/win.ini | sed -e
> 's/p:\\windows\\testing/c:\windows\testing/g' > $i/win.new && mv
> $i/win.new $i/win.ini; done

Note that that will change all occurances of the path
p:\\windows\testing in that file, not just in the 'homes=' line..


M


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

Reply via email to