You can use curl command with -s or –silent option to hide the progress bar. Or simply redirect stderr to /dev/null.
Example:
Default curl behavior:
1 2 |
## default - dispalys progress bar curl https://reqres.in/api/users > user.json |
Hide curl progress bar with -s or –silent option:
1 2 |
## with -s or --silent option - hides progress bar curl -s https://reqres.in/api/users > user.json |
Hide curl progress bar with redirect of stderr to /dev/null:
1 2 |
## with stderr redirect to /dev/null - hides progress bar curl -s https://reqres.in/api/users 2>/dev/null > user.json |