add loop and others

Press any key to continue
This commit is contained in:
onceupon 2017-09-26 09:12:22 +08:00 committed by GitHub
parent 65e9439a8f
commit f3b131f90f

View File

@ -737,6 +737,11 @@ fi
for i in $(ls); do echo file $i;done for i in $(ls); do echo file $i;done
``` ```
##### for loop, press any key to continue each loop
```bash
for i in $(cat tpc_stats_0925.log |grep failed|grep -o '\query\w\{1,2\}');do read -rsp $'Press any key to continue...\n' -n1 key;cat ${i}.log;done
```
## Math ## Math
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)] [[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
##### Print out the prime factors of a number (e.g. 50) ##### Print out the prime factors of a number (e.g. 50)
@ -1477,6 +1482,10 @@ fortune
```bash ```bash
htop htop
``` ```
##### Press any key to continue
```bash
read -rsp $'Press any key to continue...\n' -n1 key
```
## System ## System
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)] [[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]