GithubHelp home page GithubHelp logo

joshpetit / mvpls Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 4.16 MB

Move Please! Recursively move, copy, or remove all files matching a regex pattern.

Go 100.00%
don-t forget to thank the bus driver regex

mvpls's Introduction

mvpls

Mvpls (move please) is a simple utility tool written in Go to allow for the recursive moving, copying, or removing of files and flattening of file trees with regex.

In this example, every pdf file within my books directory and its subdirectories is moved to a seperate folder.

Why are my pdfs executable? Idk calibre did that to them for some reason.

It's really simple, pass in a -r "REGEX" flag and the directories you would like to search within.

mvpls -r ".*\.png" . moveLocation/

moves all pngs extensions from the current directory and its subdirectories to the folder moveLocation.

to copy, pass in the -c flag, remove pass in the --remove flag.

it's still in development lol. Try at your own risk I suppose. Should work though... spent a few hours on it...

You could say, can't we easily do this by piping a few standard commands? And you'd be right. But I wanted to make this anyway :P. Also Go is fun to code in so I can't be wrong there.

It also works just like the POSIX mv command so can move files like regular when no flag is passed. Do I get a POSIX compliant badge??

Why GO?

The correct question is why not Go? I mostly chose Go because it looks fun and is cross platform. The two most import parts in software development after the name.

Pressing features

  • Key feature allowing you to thank mvpls if it succeeds.
  • Cache operations to allow for a possible revert flag
  • Obviously add the ability to copy or remove.

mvpls's People

Stargazers

 avatar

Watchers

 avatar

mvpls's Issues

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.