mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-22 12:57:01 +00:00
add loop and others
Press any key to continue
This commit is contained in:
parent
65e9439a8f
commit
f3b131f90f
@ -737,6 +737,11 @@ fi
|
||||
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
|
||||
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
||||
##### Print out the prime factors of a number (e.g. 50)
|
||||
@ -1477,6 +1482,10 @@ fortune
|
||||
```bash
|
||||
htop
|
||||
```
|
||||
##### Press any key to continue
|
||||
```bash
|
||||
read -rsp $'Press any key to continue...\n' -n1 key
|
||||
```
|
||||
|
||||
## System
|
||||
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
||||
|
Loading…
Reference in New Issue
Block a user