mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-25 22:07:01 +00:00
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:
parent
554ac88321
commit
ef9141b0a3
@ -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
|
||||
```
|
||||
|
||||
##### 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
|
||||
```bash
|
||||
ls|xargs wc -l
|
||||
@ -1147,6 +1142,10 @@ wget -O filename "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
|
||||
[[back to top](#handy-bash-one-liners)]
|
||||
|
Loading…
Reference in New Issue
Block a user