grep command can be used to search a pattern in a file or an output. it can be connected to ls with a pipe to check this. However for your scenario the below would be an better alternative to find if the file is present
cd /home/inbound/ftp
f3=822220222 #ordernumber which change every time for this instance we use this
if [ -f "*$f3*" ]; then
f4=`find . -name *$f3*` #trying to get the existing file name if available
mv "$f4" "$f4_1" #updating existing file with "_1"
else
cp $file /home/outbound/ftp
However this checks for your order number in the variable f3. However you already know the filename that you are going to copy. so you can use that instead of f3.
cd /home/inbound/ftp
filename=`basename $file` #file name of the File being FTPed
if [ -f $filename ]; then
mv "$filename" "$filename_1" #updating existing file with "_1"
fi # closing this here will make sure the file gets copied all the time
cp $file /home/outbound/ftp