The solution using cat will duplicate the "Apple" and "Grape" entries, like so:
Apple
Grape
Strawberry
Watermelon
Green Beans
Corn
Apple
Grape
I assume that is not what the OP wanted. You can sort the list, then remove duplicates, like this:
Code:
sort -u file1 file2
which returns:
Apple
Corn
Grape
Green Beans
Strawberry
Watermelon
Not quite what you stated you wanted, but probably as good as you're going to do without writing a more complicated program. Which can be done; if you still want that, I'd look into using awk.