Re: Compression Functions



petersprc wrote:
Hi you can exec this command

tar xzvf logs.tar.gz access_log

where access_log is the file you want to extract.

Thanks, but I don't remote access to the shell. I was hoping I could use the PHP compression functions to split the files, extract to a variable, and scan the data.

I have been playing with gzfile() but what I'm doing seems a little crude.
.



Relevant Pages

  • Re: Field Extraction
    ... I wanted to read each line from a file and extract the 3rd field from ... You don't need the external command, ... while read first second third fourthplus ... Shell Scripting Recipes: ...
    (comp.unix.shell)
  • Re: [opensuse] How to bzip/gzip tar file from konqueror?
    ... For a .tar file, the only option is to extract ... it, no way to compress. ... a shell in the directory shown in konqueror. ...
    (SuSE)
  • Re: best script language to send emails ?
    ... > yes I have access to a mail server. ... You may want to extract what you need from ... which does POP3 handshaking. ... BashDiff: Super Bash shell ...
    (comp.mail.misc)
  • extracting a particular pattern form a string
    ... I want to extract a particular pattern form a string using a shell ... command. ... I have a shell (ksh) variable VAR=PQRXYZ12ABCD ...
    (comp.unix.programmer)