mir :neobot_box_dog_ears: on Nostr: i would ls | vim, visual-block copy paste the contents of every line after ...
i would ls | vim, visual-block copy paste the contents of every line after themselves, visual-block replace the second instance to the new pattern, visual-block insert `mv -v` to the beginning of each line, and run that file with bash. no tricky regexes, just vim motions and some very basic shell stuff. it does require being at least somewhat comfortable in vim, which is why i didn't suggest this approach directly. but for those who can use this i hope it helps :3
Published at
2025-10-11 01:51:10 UTCEvent JSON
{
"id": "dde325999661336f0759c753ee1a3acec243c7c6bacd411e6a3e3f24619ef0a7",
"pubkey": "3799fbafbdeb6b258614e8dd9457e7d5613834d8aba9bd07fcae9855e968c894",
"created_at": 1760147470,
"kind": 1,
"tags": [
[
"content-warning",
"subpost, file renaming"
],
[
"proxy",
"https://ice.ch3.st/notes/adp6o5htis6l035d",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://ice.ch3.st/notes/adp6o5htis6l035d",
"pink.momostr"
],
[
"-"
]
],
"content": "i would ls | vim, visual-block copy paste the contents of every line after themselves, visual-block replace the second instance to the new pattern, visual-block insert `mv -v` to the beginning of each line, and run that file with bash. no tricky regexes, just vim motions and some very basic shell stuff. it does require being at least somewhat comfortable in vim, which is why i didn't suggest this approach directly. but for those who can use this i hope it helps :3",
"sig": "82df7b6128f7616ef40fb15f3ab1f4d092af5467689a04dd318a196796f3003037a9174c362227eff8c994610979af7cfcdceebfa3e91c84411f742b6a3fd22e"
}