Giter Club home page Giter Club logo

gorenamer's Introduction

GoRenamer

This program provides a convenient way to rename files in a directory using the provided flags. It supports adding prefixes, appending strings, renaming with a current date, and even using regex patterns for more advanced renaming capabilities.

Features

  • Prefix & Append: Easily add a prefix or append a string to file names.
  • Date Formatting: Add current date (YYYY-MM-DD) as a prefix or append it to file names.
  • String Replacement: Replace a specific string in the filename.
  • RegEx Support: Use regular expressions for advanced renaming.
  • File Type Filter: Rename only files with a specific extension.
  • Remove by RegEx: Delete files whose names match a specific regex pattern.
  • Directory Rename: Apply the renaming also to directories.

Usage:

Usage of ./GoRename:
-append string
Add at the end of filename
-dr
Add -dr to modify also Directory name
-FileType string
Rename only file with extension (Example: .dwg)
-path string
Select path.
-prefix string
Add before filename
-RegExPattern string
RegEx Pattern. (Use with -RegExReplace .
-RegExReplace string
String to replace the matched regex. (Use with -RegExPattern .)
-RegExRemove string
Remove file if match regex.
-StrReplacer string
String to be replaced on renamed filename. (Use with -StrToReplace .)
-StrToReplace string
String to be replaced on original filename. (Use with -StrReplacer .)
-ta
Append YYYY-MM-DD to filename.
-tp
Add YYYY-MM-DD as prefix.
-h
help for ./GoRename

Notes

  • Always back up your data before making bulk renaming operations.
  • Ensure you have the necessary permissions for renaming and deleting in the specified directory.
  • The -dr flag must be used to modify the names of directories.
  • The -FileType flag can be used to filter the files that are renamed.
  • The -h flag can be used to display this help message.

gorenamer's People

Contributors

jackyes 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.