How to configure curl to only show percentage?

command-line, curl, linux, shell

Solution

Two modifiers might help, although neither are exact: `--silent` will suppress all updates and `--progress-bar` will show a progress bar only.

Edit: One option to make things easier would be to make a wrapper using Expect to simplify the output to your shell script or whatever is listening to curl.

Problem

Is there an option for the curl command to show only a percentage output to shell rather than all of this, for example: ``` % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 12.4M 100 12.4M 0 0 4489k 0 0:00:02 0:00:02 --:--:-- 4653k ``` Maybe there is a flag I can set? If not, pipe it somehow through a regular expression to show me a continuous update of the percentage only? Thanks all

Original source