Neil Brown on Nostr: I needed to rename a directory full of files, where rename was fine for some of the ...
I needed to rename a directory full of files, where rename was fine for some of the adjustments I wanted to make, but working out and testing the regex I'd have needed for some of the other adjustments would have taken me ages.
So I tried qmv and, well, it worked really well! It opens the file names in vim (or whatever your editor is), you make the changes you want, and then it makes them all.
Nice and simple.
Published at
2024-04-03 20:27:25Event JSON
{
"id": "79ad5288442aab37647f6abae90fe85b333539e136ef2b2a6e6eee503e7229ed",
"pubkey": "774d614ebcf8fa1536805ff86bdbe7763f4f933e21608f14b43c2b1916f38403",
"created_at": 1712176045,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.neilzone.co.uk/users/neil/statuses/112209169326800925",
"activitypub"
]
],
"content": "I needed to rename a directory full of files, where rename was fine for some of the adjustments I wanted to make, but working out and testing the regex I'd have needed for some of the other adjustments would have taken me ages.\n\nSo I tried qmv and, well, it worked really well! It opens the file names in vim (or whatever your editor is), you make the changes you want, and then it makes them all.\n\nNice and simple.",
"sig": "ec451c8925e3cf716645f1c48d11a486b60ae88265540f68f37d42ab06217eeb4ce7018009d1e73cd96692b9288e47dcb3c1ee278a2ca288ff992d4df2b8b5a2"
}