Skip to content
/ bar Public

A simple archive tool in pure bash using baee64 and stat

License

Notifications You must be signed in to change notification settings

dzove855/bar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bar

A simple archive tool in pure bash using baee64 and stat

Busion file

This project use busion to create a portable version: https://github.com/dzove855/busion

HELP

Usage: bar.sh [azRXlvnxh]

Options:
    -a      Append
    -X      Extract
    -l      list
    -v      View       
    -n      No dot files
    -R      Don't restore rights
    -z      Compress
    -s      Dry-run
    -x      Xtrace

Example:
    Create a bar file
        bar.sh NAME.bar file1 dir1/

    View file in bar
        bar.sh -v NAME.bar file

    List files in bar
        bar.sh -l NAME.bar

    Extract:
        Extract files in a different folder:
            bar.sh -X NAME.bar folder

        Extract files in current folder:
            bar.sh -X NAME.bar 

        Extract custom files in a different folder:
            bar.sh -X NAME.bar folder FILE1 FILE2

Environment Variable:
    BAR_COMPRESS    default : gzip
    BAR_UNCOMPRESS  default : gunzip
    BAR_CAT         default : _cat

NOTE:
    Currently no compression is scripted
    Currently you can't extract single files in current directory

TODO

  • Implement https:////github.com/hyperupcall/bash-algo/blob/main/pkg/lib/public/bash-algo.sh

WHY?

Well it's fun :D

About

A simple archive tool in pure bash using baee64 and stat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages