Prepend
Prepends a list of files with text.
Motivation
Maybe it's just me, but I often find myself prepending a bunch of files in a directory with some text. Since I use this all the time, I figured I'd share it in case it helps anyone else.
Installation
To install prepend, simply:
$ pip install prepend
Usage
To prepend a list of files in a directory with a specific extension:
$ pre 0 .png
1-screenshot.png -> 01-screenshot.png
2-screenshot.png -> 02-screenshot.png
3-screenshot.png -> 03-screenshot.png
4-screenshot.png -> 04-screenshot.png
5-screenshot.png -> 05-screenshot.png
6-screenshot.png -> 06-screenshot.png
7-screenshot.png -> 07-screenshot.png
8-screenshot.png -> 08-screenshot.png
9-screenshot.png -> 09-screenshot.png
You can also use the longhand name, prepend
.
Contributing
- Check the open issues or open a new issue to start a discussion around your feature idea or the bug you found
- Fork the repository and make your changes
- Send a pull request
If your PR has been waiting a while, feel free to ping me on Twitter.