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'
OBS.: the redirection of stderr to /dev/null is because 7z doesn't have a --quiet option.
P.S.: I wonder if there is some way to compress with 7zip exactly like I do with gzip:
echo "foo" | gzip -c > foo.gzThe 7zip manpage gives this example (with gzip compression):
echo "foo" | 7za a dummy -tgzip -si -so > foo.gzbut with 7zip compression, the closest i got was
echo "foo" | 7za a -t7z -si foo.7zso, how to redirect the output to /dev/stdout when reading from stdin? I mean, it is this possible via some bash-fu, named pipes, etc?
Nenhum comentário:
Postar um comentário