Back to the archive
21 Jul 2016 / 1 min read

Replacing a string with SED

Here's a handy command to replace strings inside a text file on unix. The command is the following:

> Archived article from 2016, from the old nutellino.it: commands and versions may be out of date.

> Machine translation from Italian: the original is here.

# archive# cli-utility
~/archivio

$ cat ~/archivio/sostituire-una-stringa-con-sed.md

WARNING: this file is from 2016.

I wrote it, but a me from a few years ago: it may no longer reflect what I think or what I can do.

NOTE: machine translation from Italian, the original is here.

Continue? [y/N]