ppannuto / python-titlecase

Python library to capitalize strings as specified by the New York Times Manual of Style
MIT License
249 stars 38 forks source link

cli pipe titlecase to chapters for filenames #91

Closed mrfragger closed 1 year ago

mrfragger commented 1 year ago

I used titlecase before for chapters for audiobooks by putting them into a text file. Here's the command I use now. Took me a long time to figure out the proper syntax so hope it saves some time attempting to do that same. for f in *.opus ; do mv -i -- "$f" "$(printf '%s\n' "$f" | titlecase)"

ppannuto commented 1 year ago

Thanks for the example – don't think think there's an 'issue' here per se, so I'm going to close this, but should remain available in the archives for folks to find.