Replace all instances of one word with another in a file Posted on 9. February 20079. November 2007 by Hans-Henry Jakobsen sed -i 's/ord1/ord2/g' filnavn Share this:FacebookX