I want to compare the contents of a file against a string in an AmigaDOS script. Let's say I want to check if the file ram:test contains the string "Hello World". I've tried to do it like this but it doesn't work:
Code:
echo >ram:test "Hello World"
set foo <ram:test
if $foo eq "Hello World"
echo "Yep!"
else
echo "Nope!"
endif
This prints "Nope!" although I'd expect it to print "Yep!" but I don't understand why it doesn't work...