Replace all instances of one word with another in a file

sed -i 's/ord1/ord2/g' filnavn