hi I'm jus getting some input from the user and copy to a file line by line using for loop till the user enters ^b. But when I cat the file many junk characters are present. How can fix this issue?
echo "Enter your input file"
while read -r LINE
do
echo $LINE >> CONFIG_SPEC_FILE
if [ "$LINE" = "^b" ];then
break
fi
done
input given is
element * CHECKEDOUT
element \app\... .../ch_ananth/LATEST
element \app\... /main/LATEST
load \app\bala
load \app\HomeProject
load \app\Build
cat CONFIG_SPEC_FILE
output I get includes many unknown characters along with the input.
Thanks
Ananth
