I was trying to to something with awk but it was useless..
Any help??
Also I have one more Q. I have mysql database on other Windows machine..
is there a way or how can I do that to conect to Mysql with shell script and do insert by shell script??
If you install the same basic version of mysql on your unix machine as is running on your windows machine you can use the mysql client commands to connect to the remote windows installation (you dont need to start the database).
mysql -u <user> -h <hostname> -p <databasename>
is the basic structure. Where <hostname> is the name (or IP address) of the windows machine on which your existin database is running.