in reply to Changing the contents of a file
perl -pi -e 's/turkey$/fox/' file_full_of_turkeys_that_you_want_to_be_ +foxes [download]