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”.
Published at
2024-08-30 13:20:33Event JSON
{
"id": "b9f9e94f3415565e478602b82da3adbdb632a26884155635010343e87ab42570",
"pubkey": "7ba1b0a1ad1c57faf686ed6f5da6fd0e7cfb8f39a8e40d995ad3e956823a7f15",
"created_at": 1725024033,
"kind": 1,
"tags": [
[
"proxy",
"https://studio8502.ca/users/mos_8502/statuses/113051175033416173",
"activitypub"
]
],
"content": "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”. \n\nsed -e ‘s/foo/bar/g’ \u003c infile.txt \u003e outfile.txt\n\nwill make outfile.txt a copy of infile.txt with all instances of “foo” replaced with “bar”.",
"sig": "dcd26bf5d5d43cf1f0bc685742de344d96cbca1def420ed94c653bd131d1b9abd6ece31887563221eeb3da09de671f27a49bda4f2b52046198f569e0a02d5f38"
}