Regarding reading lines into a new file

Hi all,

 I jut use a loop to read lines from the user and redirect it to a file.
         echo "Enter the line"
         while read -r LINE
         do
         echo $LINE >> FILE
               if [ "$LINE" = "^b" ];then
               break
               fi
         done

input

     app * check
     app1 \app\
     app2 \... /NEW -mk home

Expected output when i run cat the file after giving ^b which exists the while loop.

     app * check
     app1 \app\
     app2 \... /NEW -mk home

The output I get is the files and folders in the current working directory along with the input lines since there is "*" in the input line . Is there any way to avoid listing the files and folders in the current working directory and to copy only the input lines???

Thanks
Ananth

Closed - No double posting or Bumping!!
Continue here: