The subject says "last line of word" and the text says "a character". We can speculate that this means the last character of each line, or of each word ...?
Code:
sed -e 's/.$//' # last character
sed -e 's/.\( \|$\)//' # every character before a space or end of line