bash shell has a built in "echo" command.
Separately there is a binary command called "echo" typically /bin/echo.
The "-e" is valid for the binary but not for the built in.
Change your command line to the path of the echo command e.g.
Code:
/bin/echo -e "File $fg is not in this directory.\nCan't continue."
and
Code:
echo -e "$fg: There are $kk keywords."
OR you could set a variable at start of script:
Then use that:
Code:
$ECHO -e "File $fg is not in this directory.\nCan't continue."
and
Code:
$ECHO -e "$fg: There are $kk keywords."