piping output of dd through bzip2

Charles Hallenbeck chuckh at mhonline.net
Tue Jan 15 06:28:21 EST 2002


The '>' is probably crucial. According to the man page for bzip2,
if no filenames are specified, standard input and standard output
are used. As I read it, that means if you specify an output file
without the redirection symbol, bzip2 no longer accepts standard
input. So if you want to pipe the output of dd directly into
bzip2 you must not give bzip2 any filenames. Redirection of the
bzip2 output is the only way to do that.

The dd man page implies that omitting the of= parameter implies
standard output.


On Mon, 14 Jan 2002, Gregory Nowak wrote:

> Why should I use bzip if bzip2 gives better compression?
> Greg
>
>
> On Mon, Jan 14, 2002 at 03:57:06PM -0700, Jason wrote:
> > try it with 'bzip > windows.img'
> > On Monday January 14, 2002 03:42 pm, you wrote:
> > > Ok, I've just tried the following using the format indicated.
> > >
> > > "dd if=/dev/hda1 |bzip2 -9 windows.img"
> > >
> > > The result was:
> > >
> > > bzip2: Can't open input file windows.img: No such file or directory.
> > > 9+0 records in
> > > 8+0 records out
> > >
> > >
> > > Greg
> > >
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup at braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>

*<<<=-=>>>*<<<=-=>>>*<<<=-=>>>*<<<=-=>>>*
Visit me at http://www.mhonline.net/~chuckh
The Moon is Waxing Crescent (3% of Full)





More information about the Speakup mailing list