in reply to Re^5: Read multiple text file from bz2 without extract first
in thread Read multiple text file from bz2 without extract first

Corion, when I run your code, it prompts that "bzip is not an internal command...." What am I missing? Actually I would like to read a txt inside a bz2 without extracting first and pattern matching the content with some keyword and output the result to an array or text file.
  • Comment on Re^6: Read multiple text file from bz2 without extract first

Replies are listed 'Best First'.
Re^7: Read multiple text file from bz2 without extract first
by Corion (Patriarch) on Apr 03, 2012 at 05:28 UTC
    I'm never sure whether the program name is bzip or bzip2. Use whatever the name of the program is. Also, you will need to have that program available in the PATH.