use Linux Friends might be more familiar with the command,It can quickly and text documents in batches to operate in the script,For example a row or alternatively change the specific content ......
macOS Naturally have this command,But one thing is not quite the same,If you execute and -i ,So probably you will get a strange message[……]