nix, shell, perl, php, mysql and mac os x tips and tricks

Friday, September 19, 2014

Convert raw (batch) mysql command-line output to CSV

mysql --user=wibble --password wobble -B -e "select * from vehicle_categories;" | sed "s/'/\'/;s/\t/\",\"/g;s/^/\"/;s/$/\"/;s/\n//g" > vehicle_categories.csv

1 comment:

  1. In most cases, slots will rely one hundred pc towards of|in direction of} your wagering requirements, whereas blackjack and roulette can rely as little as 10%. There might even be some video games that are be} excluded from the supply entirely. For example, when you decide into a one hundred pc deposit match bonus and deposit 100$HK, you will obtain a bonus of 100$HK. Similarly, free spins bonuses are offers that give the player a set number of spins {that can be|that might be} 우리카지노 played on a pre-determined slot recreation with none have to spend cash. Start half in} your decide of the most effective video games in the marketplace in a bid to win real cash and meet the necessities of your bonus. Make certain that the web casinos in Hong Kong supply handy and safe payment methods that ought to use|you have to use} to make fast online cash transactions.