News for hackers. Stuff that matters.
Re:Can you get cp to give a progress bar like wget? by shykes on Thursday March 04, 2010 @05:18AM (#1166571)
Or you could just do:

cp $SOURCE /dev/stdout | pv | cp /dev/stdin $DEST

Edit: "pv <a >b" is simpler, but isn't the game to fit "cp" somewhere? :)

Re:Can you get cp to give a progress bar like wget? by RiderOfGiraffes on Thursday March 04, 2010 @06:35AM (#1166653)
That doesn't give you a progress bar because it doesn't know how big the data stream will be. You need to pass in some options to pv to give it that information.