What is the correct syntax to use the "w" feature of sed to write the changes to a file. I tried this without avail ( I want changes to write to "sed_file"): sed -w sed_file 's/search_string/replace_string/g' file_name_to_read Pat