David, > How do I use sed to make changes to a file, with the changes being written > back to the file? Yes, check out the -i option, it's in the manpage. V useful! -Cam PS, try to start a new thread for a new topic (don't just reply to the last Q...) :) -- <-- camilo at mesias.co.uk