Giter Site home page Giter Site logo

mmv's Introduction

mmv, mcp — mapped file moves and -copies

The mmv and mcp utilities is a command-line tool to help you easily and safely perform complex file copies, -moves, and -renamings. Unlike almost all file renaming tools I have seen online, these utilities do not limit you to using specific built-in functions which offer only part of the functionality one might need. These utilities also try to be as safe as possible — you would be amazed at how many file renaming tools lose your data when you try something as simple as swapping two files.

Installation

Installation is very easy. This is written in Rust, so it’s assumed you have cargo installed on your system.

$ make
$ sudo make install

The following environment variables can also be set at compile-time to modify the names of the generated binaries:

  • $MMV_NAME
    • The name of the file-moving binary (default is mmv). This is also used to name the backups folder in $XDG_CACHE_HOME.
  • $MCP_NAME
    • The name of the file-copying binary (default is mcp).

If you are compiling with a custom binary name, you want to make sure that the environment variables actually get used when performing a make install. If you’re using sudo, you want to do this with the -E flag.

$ MMV_NAME=mmv-rs MCP_NAME=mcp-rs make
$ MMV_NAME=mmv-rs MCP_NAME=mcp-rs sudo -E make install

Examples and Documentation

To avoid repeating myself everywhere, if you would like to see usage examples and documentation I highly suggest reading the included manual page or reading the extended documentation on my website.

Contributions

Contributions, feedback, and suggestions are always welcome! You are free to open GitHub issues, email me, or do whatever else you want. I do ask however that contributions be made either on sourcehut or via git send-email to ~mango/[email protected]. The git repositories on GitHub and my own personal site exist purely as read-only mirrors.

mmv's People

Contributors

aninternettroll avatar mango0x45 avatar

Stargazers

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