Giter VIP home page Giter VIP logo

fnn's Introduction

Fnn test build

Synopsis

File name normalizer that renames files and folder removing special characters. Contains a mighty chunk of extra opinionated renaming rules.

Rename schemes

Renaming schemes are stored inside the replacer_schemes.yaml file that contains a list of replace rules. A single rule consists of a regular expression and a replacement. All rules are processed in order from top to bottom. Here is what they look like.

- rx: ä
  nu: ae

- rx: ö
  nu: oe

- rx: ü
  nu: ue

- rx: ß
  nu: ss

- rx: (à|á|â|ã|å)
  nu: a

- rx: (è|é|ê|ë)
  nu: e

- rx: (í|ì|î|ĩ|ï)
  nu: i

- rx: (ò|ó|ô|õ)
  nu: o

- rx: (ù|ú|û)
  nu: u

- rx: ç
  nu: c

- rx: " "
  nu: _

- rx: "[^a-z0-9_-]+"
  nu: _

- rx: (_-|-_)
  nu: _

- rx: "-+"
  nu: "-"

- rx: _+
  nu: _

- rx: _$
  nu: ""

- rx: "([a-z]+)_([0-9]{1,2})$"
  nu: "$1$2"

Help

rename files removing special characters, leave only those that do not need to
be escaped in shell

Flags:
  -h, --help                      Show context-sensitive help.
  -f, --folder="/home/ole/rolling/golang/projects/fnn/src"
                                  root folder in which to run the renamer,
                                  default is current folder
  -m, --matcher=".*"              regex matcher, process only paths that fit the
                                  expression
  -r, --recursive                 recurse into sub directories, default is none
  -l, --log-file="/dev/stdout"    log file
  -e, --log-level="info"          log level
  -c, --log-no-colors             disable output colours, print plain text
  -j, --log-json                  enable json log, instead of text one
  -n, --dry-run                   debug mode
  -V, --version-flag              display version

Disclaimer

Warning. Use this software at your own risk. I may not be hold responsible for any data loss, starving your kittens or losing the bling bling powerpoint presentation you made to impress human resources with the efficiency of your employee's performance.

fnn's People

Contributors

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