question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add custom suffix to files?

See original GitHub issue

Hi 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:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jonahpearlcommented, Jul 13, 2022

(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)

1reaction
jonahpearlcommented, Jul 13, 2022

Yup, appears to work. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found