isql query in unix shell script

Dear all

I want to execute some isql command from unix shell script. Kindly suggest me. isql command mention below.

isql -U -P
use gdb_1
go
select count (*) from table_x
go

Do you mean

#!/bin/sh

isql -U -P <<EOF
use gdb_1
go
select count (\*) from table_x
go
EOF

what does mean by <<EOF and EOF at last statement.

It means use everything between these two tags as stdin.