Skip to main content

UNKNOWN

Project description

Trim Filename
=============

|Stories in Ready|

| A script to trim a specific pattern from filenames.
| Files are recursively checked for a pattern match on the path user
mentions.

Usage
^^^^^

.. code:: sh


home $ ls songs
04_maroon5_-_she_will_be_loved-tn.mp3 05 Flo Rida - Whistle.mp3
Nelly - Just A Dream 2010.mp3 David Archuleta - A Little Too Not Over You000.mp3


home $ trimfilename songs
parsing directory: songs
Files renamed:
songs/04_maroon5_-_she_will_be_loved-tn.mp3 : maroon5_-_she_will_be_loved-tn.mp3
songs/05 Flo Rida - Whistle.mp3 : Flo Rida - Whistle.mp3

Successfully renamed 2 file/s


home $ ls thumbs
AlbumArt_Adele_Large.jpg AlbumArt_hall_of_fame_Large.jpg AlbumArt_lotavo_Large.jpg


home $ trimfilename thumbs -b AlbumArt_
parsing directory: thumbs
Files renamed:
thumbs/AlbumArt_Adele_Large.jpg : Adele_Large.jpg
thumbs/AlbumArt_hall_of_fame_Large.jpg : hall_of_fame_Large.jpg
thumbs/AlbumArt_lotavo_Large.jpg : lotavo_Large.jpg

Successfully renamed 3 file/s


home $ ls thumbs
Adele_Large.jpg hall_of_fame_Large.jpg lotavo_Large.jpg


home $ trimfilename thumbs -p _large -i
parsing directory: thumbs
Files renamed:
thumbs/lotavo_Large.jpg : lotavo.jpg
thumbs/hall_of_fame_Large.jpg : hall_of_fame.jpg
thumbs/Adele_Large.jpg : Adele.jpg

Successfully renamed 3 file/s

.. |Stories in Ready| image:: https://badge.waffle.io/tanjot/trimfilename.svg?label=ready&title=Ready
:target: http://waffle.io/tanjot/trimfilename

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trimfilename-0.6.0.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file trimfilename-0.6.0.tar.gz.

File metadata

  • Download URL: trimfilename-0.6.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for trimfilename-0.6.0.tar.gz
Algorithm Hash digest
SHA256 72b5f6803db6687c267ee94fd98e4e85ae1f17dc78bf5c6528d0e43c62e6b8ee
MD5 5fa57db62742db3779b5d275a622beda
BLAKE2b-256 9ca4979b7382e079c73df3477d0881465651d80fe7e3cb4741c51d6103be2212

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page