Re: question about piping and standard output



"Chirag Shukla" <chiragshuklaindia@xxxxxxxxx> writes:

dump -0 -a -u -f - /dev/sda1 | split -b2000m - foo.dump && tar cvzf
foo.tar.gz && rm foo.dump*

Typed too fast and missed a thing, sorry. Here the correction:

....

dump -0 -a -u -f - /dev/sda1 | split -b2000m - foo.dump && tar cvzf
foo.tar.gz foo.dump* > /dev/null && rm foo.dump*

What's the point of asking tar to be verbose then to redirect
it to /dev/null? Wouldn't it be easier just to use "tar czf ..."
and forget the redirection? :-))

Vilmos
.