Search Replace Large File sed -i "" 's/foo/linux/g' file.txt sed 's/http:\/\/localhost:8888\/mywebsite/http:\/\/mywebsite.com/g' FileToReadFrom > FileToWriteTo