mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-22 21:07:00 +00:00
Update README.md
This commit is contained in:
parent
41f898aa95
commit
81b3375b2f
@ -768,7 +768,7 @@ for i in $(ls); do echo file $i;done
|
|||||||
for i in $(cat tpc_stats_0925.log |grep failed|grep -o '\query\w\{1,2\}');do cat ${i}.log; read -rsp $'Press any key to continue...\n' -n1 key;done
|
for i in $(cat tpc_stats_0925.log |grep failed|grep -o '\query\w\{1,2\}');do cat ${i}.log; read -rsp $'Press any key to continue...\n' -n1 key;done
|
||||||
```
|
```
|
||||||
|
|
||||||
##### for loop, print a file line by line
|
##### for loop, print a file line by line when a key is pressed
|
||||||
```bash
|
```bash
|
||||||
for line in $(cat myfile); do echo $line; read -n1; done
|
for line in $(cat myfile); do echo $line; read -n1; done
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user