Hmm... That sort of makes sense after reading about it...
Atleast I'm getting something different.
[root@darkstar ~/Desktop] sh test
test: line 11: unexpected EOF while looking for matching `''
test: line 14: syntax error: unexpected end of file
That should be right. It said the dilemeter is the matching result of word only without the quotes and with no prepending spaces, so... yea. Your right. Still doesn't seem to be working.
Well, basically, I'm just lost. It doesn't have to append at the end of the file nor does it have to use an if/then structure. I simpily need to append some text to an existing file (cat is the only way I know how), wherever it goes (beginning/middle/end), and then I need to run another command after that... Man I'm stumped. I'll keep looking for literature but any additional help would ofcourse be welcome.