I see what you're saying but the part where you want me to make it write it in a file is beyond my knowledge :) Still learning how to use $gettok.