touch log.txt
while [ 1 ]; do
echo "insert data: "
read data
if [ $data = "finish" ]; then
break
fi
echo "$data" >> log.txt
When I run the program and type in a word in an input like "hello im martin", it gives me an error saying unexpected operator. How to fix this?
done, right? :)donewas missing.