#!/usr/bin/env php . * * I wanted to write this in Scheme (it's a perfect recursive application), but * I figured that other developers may get annoyed having to find a Scheme impl * that works for them...so...PHP it is... * * THIS SCRIPT EXPECTS THE DATA TO BE SORTED! This can be easily accomplished by * doing the following: * sort -d zipfile | ./zipre */ include 'lib/zipre.php'; // grab input from stdin (must be sorted!) $data = explode( "\n", file_get_contents( 'php://stdin' ) ); // build and output echo gen_re_quick( $data );