[NTLUG:Discuss] in a world where grep doesn't have the -m (match) option..
Rick Renshaw
bofh69 at yahoo.com
Wed Mar 26 18:58:41 CDT 2008
--- Geoffrey Climer <gclimer at gmail.com> wrote:
> What about "bzip2 -d" ? Isn't that the same as "tar -j"?
No, they're not the same. -d just forces bzip2 to run in decompress mode. What that means is if
you have a file: file.tar.bz2, and you run 'bzip2 -d file.tar.bz2', you have 'file.tar' left. It
uncompresses the file in place. BTW, bunzip2 is usually a hard link to the same executable as
bzip2, and will decompress by default unlike bzip2. To function like tar -j, you have to
decompress to stdout (-c) and then pipe that to tar and untar stdin: 'bunzip2 -c file.tar.bz2 |
tar xvf -'
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the Discuss
mailing list