What is Nostr?
mos_8502 :verified: /
npub10ws…rxeh
2024-08-30 13:20:33

mos_8502 :verified: on Nostr: sed is a text editor. Specifically it’s a non-interactive editor for text streams. ...

sed is a text editor. Specifically it’s a non-interactive editor for text streams. It’s meant to be used as part of a pipeline that processes text. It can do many types of edit, but the one I use most is basically “find and replace”.

sed -e ‘s/foo/bar/g’ < infile.txt > outfile.txt

will make outfile.txt a copy of infile.txt with all instances of “foo” replaced with “bar”.
Author Public Key
npub10wsmpgddr3tl4a5xa4h4mfhape70hree4rjqmx266054dq360u2s9lrxeh