perl -pi -e"s/this/that/" -e"s/something/somethingelse/" infile >outfile