add command to Random section

Random generate password (e.g. generate 5 password each of length 13)
This commit is contained in:
Bonnie I-Man Ng 2019-08-15 18:38:57 +08:00 committed by GitHub
parent 055bbc8790
commit 3bab1594ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1157,6 +1157,13 @@ curl -L google.com
## Random ## Random
[[back to top](#handy-bash-one-liners)] [[back to top](#handy-bash-one-liners)]
##### Random generate password (e.g. generate 5 password each of length 13)
```bash
sudo apt install pwgen
pwgen 13 5
#sahcahS9dah4a xieXaiJaey7xa UuMeo0ma7eic9 Ahpah9see3zai acerae7Huigh7
```
##### Random pick 100 lines from a file ##### Random pick 100 lines from a file
```bash ```bash
shuf -n 100 filename shuf -n 100 filename