sed 's/change/changeWith/1' FileName.txt sed 's/change/changeWith/g' FileName.txt ## global change for every occurence