Skip to content

rudojaksa/rezip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

rezip - rezip file into other format (.lz)

USAGE

    rezip [OPTIONS] FILE/DIR...

DESCRIPTION

Unzip and zip again input files into specified format. Unless it is requested by -f, directories and .zip files are kept alongside the rezipped file. Default target format is .lz.

Zipped repositories repo-master.zip are automatically renamed to the repo-date.tar with the date of the last modification in the repo.

OPTIONS

           -h  This help.
           -n  No zip.
           -f  Force delete directories and .zip files after rezipping.
	  -lz  Lzip format.
         -bz2  Bzip2 format.
         -zst  Zstd format.

HANDLES

  directories  input
  .gz/.tgz/.Z  input
         .bz2  input/output
          .xz  input
          .lz  input/output
         .zst  input/output
         .zip  input

REQUIRES

     perl,tar  essential
    coreutils  essential (stat,du,ls,mkdir,mv,rm,nice)
       gunzip  for .gz  handling
        unzip  for .zip handling
         unxz  for .xz  handling
bzip2/bunzip2  for .bz2 handling
  lzip/lunzip  for .lz  handling
  zstd/unzstd  for .zst handling

INSTALL

    Put the rezip file into your /bin or ~/bin.

EXAMPLE

    rezip file.tgz  # to rezip given file
    rezip *         # to rezip all files/dirs in current directory

VERSION

rezip.0.4 (c) R.Jaksa 2020, GPLv3