"Such as" and "like" are both used to introduce examples, such as: (<== see, I just used it right there!):
I love Anerican actors, such as Samuel Jackson and George Clooney.
I like to play sports, such as tennis, volleyball, and baseball.
Grammatically, this is correct. People use "like" to replace "such as" all the time in everyday speech, but technically it is not correct grammar:
My friend has visited many cities, like London, Madrid, and Brussels.