Giter VIP home page Giter VIP logo

dir2tar's Introduction

Intro

This is a simple script to manage archiving directories as a .tar file. This script has come to existance because of a personal need and enthusiasm.

The aim here is to archive and then remove the directory from the folder in which the script is being run.

By now, the script looks for all directories within the PWD (Present Working Directory) and make an archive file from each. By default, it makes the file with the same name and '.tar' extention, with no compression. If the process ends with no error, it removes the directory.

To do list

  • Warn the user and get her confirmation before running the script
  • Show a summery of what would be affected by running the script
  • Show a brief report after completion of operation on each directory
  • - improve the confirmation
    • - It should ask again if the user has entered 'y'
    • - convert $confirm to lowercase for comparision
  • Add -h --help option
  • Add -v --verbose and -z --compress options
  • Add -y --yes option
  • Make long options (--OPTION) also functional
  • Add -i --interactive option
    To get confirmation from the user before working on each directory
  • Make a black list of folders in which this script should refuse to perform (such as root, home,...)
  • Error management Make sure the the operation is done as expected in each and every

Contribution

Any contribution would be welcome. Just since this is an excuse for me to develop my skills, I need to keep the process slow.

Thanks

dir2tar's People

Contributors

ahangarha avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

ssids

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.