quinta-feira, 4 de junho de 2009

7zcat

Sometimes you just want to "grep" someting in a compressed text file, but it is too big to be decompressed and then processed. This is why I love zcat and bzcat: I could decompress and pipe it on the flow to grep/awk/whatever, but unfortunately I do not see a 7zip cat like.

7zip is so awesome because I got better and faster compressions using it, but it's command line options are too many and hard to remember, so I put this alias in my ~/.bashrc:
alias 7zcat='7za e $@ -so 2> /dev/null'