Flock of Nazguls on Nostr: So I had ~100 formatted text files that needed to have one specific string changed in ...
So I had ~100 formatted text files that needed to have one specific string changed in a specific column on a specific line. A trivial problem, but I’m lazy so decided to try Chat GPT. Gave it a carefully crafted prompt and it spat out a Python script as well as a Bash script. Both barfed on attempting to execute. Wasted about an hour trying to tweak the code to get it to even run. No luck.
I then whipped out Emacs and recorded a macro that did the trick. Took me about 5 minutes.
#slowclap
Published at
2024-06-13 22:41:54Event JSON
{
"id": "2dea21a314c58e4454ea27bc4673bff6dfb742f25ad0a02750d34a40e3b91d82",
"pubkey": "969ad5d36e1b95254efabeff2a01683db89831e728dbaaa05a7b460023707c9c",
"created_at": 1718318514,
"kind": 1,
"tags": [
[
"t",
"slowclap"
],
[
"proxy",
"https://mastodon.flockofnazguls.com/users/flockofnazguls/statuses/112611722158970158",
"activitypub"
]
],
"content": "So I had ~100 formatted text files that needed to have one specific string changed in a specific column on a specific line. A trivial problem, but I’m lazy so decided to try Chat GPT. Gave it a carefully crafted prompt and it spat out a Python script as well as a Bash script. Both barfed on attempting to execute. Wasted about an hour trying to tweak the code to get it to even run. No luck.\n\nI then whipped out Emacs and recorded a macro that did the trick. Took me about 5 minutes.\n\n#slowclap",
"sig": "5a61f8684bcff9e89125cb0aab55f3629d01a827ca1407f156889afec9c88a1eb80782405e5e42b4420d9c5bca308f33528996728a3f3760c0accd4de8c83407"
}