Skip to content
/ compre.sh Public

combined compress(1) and uuencode(1) implementation for bash/ksh

Notifications You must be signed in to change notification settings

bnjf/compre.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

compre.sh

A combined compress(1) and uuencode(1) implementation for bash/ksh

How does it work?

LZW encoding is a variable bit width dictionary lookup typically done with a hash keyed by a couple (prev,cur). I use the filesystem instead to respresent a trie, with the byte values as directory names, and a single file e to store the dictionary index.

This is not very fast, and it's best to keep the COMPRESH_BITS setting low. If you're patient (and the filesystem is ample), you can try setting it to the compress(1) default of 16.

Enjoy!

About

combined compress(1) and uuencode(1) implementation for bash/ksh

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages