Giter Club home page Giter Club logo

batch-rename-dart's Introduction

batch_rename

A CLI tool to enable batch renaming of files.

Installation

  1. Clone the repo and add bin/batch_rename.exe to PATH:

    gh repo clone POWRFULCOW89/batch_rename

    or

  2. Get the pub package:

    dart pub add batch_rename

    and build from source:

    dart compile exe .\bin\batch_rename.dart

    or

  3. Grab a prebuilt binary.

Usage

batch-rename.exe substring [new_string] [-h] [-n] [-r]

positional arguments:
   substring   Substring to strip or replace out of every file in path.
   new_string  String to replace for every matching substring. Defaults to an empty string.

optional arguments:
   -h, --help  show this help message and exit.
   -n          Rename all files to substring and number them accordingly.
   -r          Batch rename recursively in subdirectories.

Examples

  1. Output a standard set from favicon.png:

    batch_rename favicon.png 
  2. Output the standard, Apple and Windows 10 sets from logo.jpg:

    batch_rename logo.jpg -a -w
  3. Strip all brackets and their content:

    batch_rename "\[.+\]" 

batch-rename-dart's People

Contributors

powrfulcow89 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.