modify sql format to unix