Giter Site home page Giter Site logo

unpack's Introduction

File Unpacking Script

This repository contains a Bash script for unpacking compressed files. The script provides the functionality to decompress files of various compression types, including gzip, bzip2, zip, and compress.

Usage

You can use this script to efficiently unpack compressed files in a directory.

Prerequisites

  • Bash shell (Most Unix-like systems come with Bash pre-installed)
  • file command for determining compression type
  • gunzip, bunzip2, unzip, and uncompress commands for decompression (Make sure these are available on your system)

Running the Script

  1. Clone this repository to your local machine:

    git clone https://github.com/your-username/file-unpacking-script.git
  2. Change into the repository directory:

    cd file-unpacking-script
  3. Make the script executable:

    chmod +x unpack.sh
  4. Run the script with desired options and file paths:

    ./unpack.sh [options] file1 file2 directory1 ...

    Available options:

    • -r: Enable recursive unpacking for directories (optional)
    • -v: Enable verbose output (optional)

    Example usage:

    ./unpack.sh -r -v compressed_directory/file1.gz compressed_file.zip another_directory

Example

Suppose you have a directory named archives containing compressed files, and you want to unpack them:

./unpack.sh -r archives

This command will recursively unpack all files in the archives directory.

Contributions

Contributions to this repository are welcome! Feel free to submit issues and pull requests.

License

This project is licensed under the MIT License.

unpack's People

Contributors

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