Update pv.md (#9658)

* fix 'stop at' option by including --size parameter
* replace -s and -S with their spelled out variants
pull/3/head
selfint 2022-12-30 01:06:09 +02:00 committed by GitHub
parent cd8ebad9ce
commit 6698ecaed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -7,9 +7,9 @@
`pv {{path/to/file}}`
- Measure the speed and amount of data flow between pipes (`-s` is optional):
- Measure the speed and amount of data flow between pipes (`--size` is optional):
`command1 | pv -s {{expected_amount_of_data_for_eta}} | command2`
`command1 | pv --size {{expected_amount_of_data_for_eta}} | command2`
- Filter a file, see both progress and amount of output data:
@ -25,4 +25,4 @@
- Stop reading after reading specified amount of data, rate limit to 1K/s:
`pv -L 1K -S {{maximum_file_size_to_be_read}}`
`pv -L 1K --stop-at --size {{maximum_file_size_to_be_read}}`