Add custom suffix to files?
See original GitHub issueHi there, I’m wondering if there’s a way to append a custom suffix to files. It would be great to be able to do, eg, jupytext --to py ./**/*.ipynb --suffix my_converted_script
. I wrote a bash script to do this file by file but seems like a quick add in Python that would save others having to write a script. Am I missing an obvious way to do this with the current options? Thanks.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Windows CMD: Add Suffix to all files in folder - Super User
I was looking for a way to add suffix "_t" to my images. Just one simple PowerShell command did it ! CD "target...
Read more >How to Rename Multiple Files in a List to Add Suffix and Prefix?
This article provides the users with a Command Prompt oriented method to rename files by adding a prefix and suffix to them.
Read more >powershell - How to add a suffix to all the files - Stack Overflow
So to put it all together: dir | Rename-Item -NewName {$_.Basename + ' 2013' + $_.Extension} -whatif.
Read more >Allow media encoder to add custom prefix/suffix to output file
Specifically allow media encoder to add either custom text or source file name as a prefix/suffix to the output file.
Read more >Add prefix and suffix to all files in folder with PowerShell
Learn how to add prefix or suffix to files in a folder with PowerShell. The Rename-Item cmdlet is excellent for adding prefixes and ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
(Also ps: I used this to write a small script to convert ipynb’s from 2-space tabs to 4-space tabs. Not the intended use-case but very handy! If I get a chance I will update the gist with this streamlined verison! https://gist.github.com/jonahpearl/5bd84ee032911ee0b0c32f773a9b511e)
Yup, appears to work. Thanks!