Giter VIP home page Giter VIP logo

dir2sh's Introduction

dir2sh - Converts a directory to self extractable compressed script

This linux/mac utility converts a directory to self extractable script.

How it works?

  1. Given input directory ( IN is converted to a tar.gz file ( IN.tar.gz ).
  2. The tar.gz file (IN.tar.gz) is then embedded in to a bash script ( OUT.tar.sh ) with self extraction feature.
  3. This self extractable tar script ( OUT.tar.sh ) can be transported to any linux computer/device and extracted.

How to extract directory(IN) from the tar script (OUT.tar.sh)

  1. Just execute "./OUT.tar.sh"
  2. You will find directory (IN) in the current working directory.

Installation

  1. Clone this repo and enter the repo directory
  2. cd src
  3. sudo ./install.sh #if you have root permission directly execute ./install.sh

Uninstall

  1. Clone this repo and enter the repo directory
  2. cd src
  3. sudo ./uninstall.sh #if you have root permission directly execute ./uninstall.sh

Usage

$dir2sh <director_name - with full path>

Example 1

$dir2sh /home/test test.tar.sh

This command compress the directory (/home/test) to test.tar.sh

Example 2

$dir2sh "*" curr_dir.tar.sh

This command compress all contents of current directory to curr_dir.tar.sh

Use Case

This utility is useful to transport directory as a self extractable package/script between linux/mac systems.

dir2sh's People

Contributors

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