hi
One more thing i was thinking on at lunch 🙂
For this specific purpose. i would avoid scripting it. as this is a very structured format. i would have just play with excel a bit to replace the current config file to the new command line syntax to set it.
You have:
1061 user@/vol/vol_castor 10000000K -
And you need:
quota policy rule create -vserver MYSVM -policy-name default -volume vol_castor -qtree "" -type user -disk-limit 10000000K -target "domain\user"
So if you split in excel (Data>Text to columns) all the " ","@","/" once you have them in separate columns. you can copy-paste around and put it between the new command line

It’s very low tech. but sometimes the simplest solution is the best one (in Script you will ned to handle errors, comments, etc etc)
Gidi