Script not working

Hi i have write the one scripts and the scripts is error. The scripts purpose select one directory to check the file is there or not. i will give the two format of file to search the mention the path one file is there to select the file one copy the another location.please check the my script give me the correct scripts.

#!/bin/bash
b= /tmp <search the directory or soruce directory>
c=/scripts<destination directory>
pwd
str1=`hostname`.`date "+%d%m%y%k"`* <file format>
str2=Ma.`hostname`.`date "+%d%m%y%k"`*
b=$str1,$str2;
if [ $b == $str1 ];
then
echo "output is equal"
echo `ls -l | grep -i "$str1"`;
echo `cp $str1 /scripts`
else
echo "output is not equal"
echo `ls -l | grep -i "$str2"`;
echo `cp $str1 /scripts`
fi
exit 0

---------- Post updated at 12:40 PM ---------- Previous update was at 10:10 AM ----------

please give me the reply.

The most vital informations are missing: which system do you use, which error happens, are there any dagnostic messages, what should the script do in frst place and in which way doesn't it do this, etc..

Mutual respect affords you to put as much effort in phrasing a question as you expect anyone writing an answer to put into answering it. And if anyone answers giving the answer as little effort as you put into the question: do you expect such an answer to be helpful?

I suggest thinking this over. You might get more and better answers that way.

I hope this helps.

bakunin