Pipe Viewer with gunzip and untar

C

chrislayer

Guest
any way i can make the command work with a progress bar using pipe viewer?
gunzip -c myfile.tar.gz | tar xvf -
 


I've never done such thing, may be possible with some other tool, such:

....a nice tool for showing the progress when extracting a compressed tar file on the command line: pv. pv monitors the progress of data as it goes through a pipe, so we need to send the file to tar using a pipe:

$ pv file.tgz | tar xzf - -C target_directory
 

Staff online

Members online


Top