Daniel@0: #!/usr/bin/env bash Daniel@0: # zzcd process> Daniel@0: # Applies separately to reference, and to concatenation of reference and input, Daniel@0: # then applies to the results. Daniel@0: here=$(dirname "$0") Daniel@0: compress="$1" Daniel@0: diff="$2" Daniel@0: ref="$3" Daniel@0: shift 3 Daniel@0: prepend "$ref" | eval $compress | encode "$diff" <(cat "$ref" | eval $compress) "$@" Daniel@0: Daniel@0: