How to find and replace the text on the remote computer, Mac OS Mojave?

what do you want? - find and change text - you need to replace phone numbers on hosting more than 30 files, website files index.html
what is? - an ssh connection between Mac OS Mac OS Mojave to Mojave. one laptop, and one Hackintosh with Mac axis web server

find Users/Desktop/Documents \( -type d -name .git -prune \) -o -type f-print0 | xargs -0 sed -i 's/OldText/NewText/g'
sed: 1: "/Users/Desk ...": command i expects \ followed by text

but it gives error command i expects \ followed by text - something is missing and the command will fail. I want to change the contents inside the specific folder for a specific site, there to change the contacts, in fact the contents of the file. as, for example, find and replace In sublime the text, but that on a remote host via ssh? want from the command line to rule. if anyone knows how to do it I would be grateful for a hint.
March 23rd 20 at 19:35
1 answer
March 23rd 20 at 19:37
sed -i

-i is not specified by POSIX, and therefore may work differently in different systems.

sed -i.random-backup-tag 's/OldText/NewText/g' should help. Then backups will delete team
find Users/Desktop/Documents \
 -type d -name .git -prune -o 
 -type f -name '*.random-backup-tag' -print0 | \
 xargs -0 rm-f
not rolling - sed: RE error: illegal byte sequence - Reece_Boyer71 commented on March 23rd 20 at 19:40

Find more questions by tags sedmacOS