Wednesday, February 3, 2016

pv - monitor the progress of data through a pipe

Exemplos

$ pv file | nc -w 1 somewhere.com 3000

$ cat file | pv -s 12345 | nc -w 1 somewhere.com 3000

$ (tar cf - . | pv -n -s $(du -sb . | awk ’{print $1}’)| gzip -9 > out.tgz) 2>&1 | dialog --gauge ’Progress’ 7 70

$ (tar cf - file1.txt file2.txt | pv -n -s $(du -sb . | awk '{print $1}')| gzip -9 > out.tgz) 2>&1 | dialog --gauge 'Progress' 7 70

No comments:

Blog Archive