以下のようにやればカンマ区切りで結果がファイルに吐出されます。
mysql -u user_name -p -h host_name db_name -e "select * from table_name;" | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g' | sed '1d' > /var/tmp/table_name.csv
Go to list of users who liked
More than 5 years have passed since last update.
以下のようにやればカンマ区切りで結果がファイルに吐出されます。
mysql -u user_name -p -h host_name db_name -e "select * from table_name;" | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g' | sed '1d' > /var/tmp/table_name.csv
Register as a new user and use Qiita more conveniently
Go to list of users who liked