Making file inside shell script

Hi,

i have written a shell script and its working fine till now. Now, i have to enhance it with a small updation.
i need to make a file inside my file that will contain the below parameters

1) Customer_id
2) Server_id
3) No. Account

All the above variables are already been taken in the script.
the output of the file should be like below :-

SERVER:xxxxxxxx
            CUSTOMER:xxxxxxx
            SERVER_ID:x
Account:XXXXXX
            

name of the file will be :-

accounts_control_info_<SERVER_ID>

this accounts i am calling in anther function in the script like this:-

if [[ "${1}" = "ACCOUNTS" ]]
  then
    grep "payer" $2 > ${LOCAL_DIR}/tmp.ci_payer_${CREATION_DATE}_${SERVER_ID}.txt

the above if condition is called inside loop. I need to make a file here with the above entries.

can anyone help me with this.. need urgently

hi,
As per wat i understand u need to create a file with this name (accounts_control_info_<SERVER_ID>)
If i'm correct u can use touch option

touch /root/file_name_$SERVER_ID.txt

where root is the exact location of the file & server id will keep changing.

Hope this helps

thanks but i got the solution.. thanks a lot

can also do

cat > file <<eof
fsdfsdfd
sdfsfsfs
eof