add to 'download'

- add 'Follow any redirect until it reaches the final destination'
- remove a command for installing python dependencies.
This commit is contained in:
Bonnie I-Man Ng 2019-07-02 15:30:21 +08:00 committed by GitHub
parent 554ac88321
commit ef9141b0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -773,11 +773,6 @@ echo mso{1..8}|xargs -n1 bash -c 'echo -n "$1:"; ls -la "$1"| grep -w 74 |wc -l'
# "--" signals the end of options and display further option processing # "--" signals the end of options and display further option processing
``` ```
##### Download dependencies files and install (e.g. requirements.txt)
```bash
cat requirements.txt| xargs -n1 sudo pip install
```
##### Count lines in all file, also count total lines ##### Count lines in all file, also count total lines
```bash ```bash
ls|xargs wc -l ls|xargs wc -l
@ -1147,6 +1142,10 @@ wget -O filename "http://example.com"
wget -P /path/to/directory "http://example.com" wget -P /path/to/directory "http://example.com"
``` ```
##### Instruct curl to follow any redirect until it reaches the final destination:
```bash
curl -L google.com
```
## Random ## Random
[[back to top](#handy-bash-one-liners)] [[back to top](#handy-bash-one-liners)]