SED Wymień najpierw w pliku
sed '0,/REPLACESTHIS/s//WITHTHAT/' myfile.txt
garzj
sed '0,/REPLACESTHIS/s//WITHTHAT/' myfile.txt