Giter Site home page Giter Site logo

hash-collector's Introduction

hash-collector

Bash script to collect hash commits via txt file and generate a zip of some folder in the repo. If you need get some folder of repo based on a hash (commit), zip the folder and save, this script will make you happy :)

How to use:

The script needs the following parameters: hash commit or file.txt

Example (txt file):

$ ./hash-collector.sh file.txt

Example (hash commit):

$ ./hash-collector.sh 13200e0b1cec3c0150e53ffc8b3231ebc19e8cc3

Txt File:

The script read the txt file line by line, so your txt should follow the structure:

13200e0b1cec3c0150e53ffc8b3231ebc19e8cc3
3ef1d4ed247d8d5389f5a419eee9a4f9cf51a644
3ef1d4ed247d8d5389f5a419eee9a4f9cf51a527

Create alias for script:

Edit your .bashrc and add the follow code below:

alias hash-collector="/usr/local/bin/hash-collector.sh"

Obs: Make sure you copied the hash-collector.sh for "/usr/local/bin/"

Demo:

Alt Text

hash-collector's People

Contributors

djadriano avatar

Stargazers

 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.