I have a very large file as: filename.bz2, how can I view the file content and do some commands like awk to extract some data into another file without decompress it ? I tried head -50 filename.bz2 to view the first 50 lines, but it prints out rubbish and not the what I supposed to view from the file.
I have a very large file as: filename.bz2 , how can I view the
Share
You can use
bzcatand pipe its output toawkor whatever tool you use, but it is essentially nothing different from extracting a file and then processing it.