the.bay.news

[Python, commandline] NamePlate: Rename files and directories by transforming their basename

programming.dev
[Python, commandline] NamePlate: Rename files and directories by transforming their basename
>I ( @thingsiplay@beehaw.org [/u/thingsiplay@beehaw.org] [https://beehaw.org/u/thingsiplay] ) wrote some niche commandline Python script to rename filenames. I know there are many tools to do this already. It’s in the vein of something like Perl rename command. Maybe someone is interested, I don’t know. > >bash >name --append "_v2" -- *.py > >name --glob --replace " (*" -- *.sfc > > >Manual installation only: > >bash >git clone https://github.com/thingsiplay/nameplate >cd nameplate >mv name.py name ># The path below is just a suggestion. This depends on your system. >install --verbose -t ~/.local/bin/ name > > >BTW, use option -n (--dry-run) to test commands without applying any changes on the filesystem. The README got some more examples. By developer @thingsiplay@beehaw.org [/u/thingsiplay@beehaw.org] [https://beehaw.org/u/thingsiplay]

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.