Mysql with shell script

Hi

did any books teaching beginner to run mysql using BASH shell?

thkx

what exactly you wanna learn??
because if you know how to connect to mysql from unix command prompt its all needed
rest is simple..

just wanted to learn the way they code.

thkx

here is a shell script to show contents of a mysql table.

TABLE_NAME=sometable
USER_NAME=someuser
IP_ADDR=localhost
PASSWORD=somepassword

somevar=`echo "select * from <table_name> where <condition>" | mysql -h $IP_ADDR -u $USER_NAME -p$PASSWD $TABLE_NAME `

echo $somevar

My fault

<< eof

eof

Hi Ikon
Thanks for sharing