3 ms·
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? :)
by shykes 17y ago
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? :)
- RiderOfGiraffes 17y agoThat 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.