Bash and mysql sample

echo "SELECT * FROM db.user_info LIMIT 10" | mysql -u root -p<PASSWORD> | awk '{print $1, $2, $3}'

Comments