mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2024-11-26 22:40:28 +00:00
add other
Keep /repeatedly executing the same command (e.g Repeat 'wc -l filename' every 1 second),
This commit is contained in:
parent
a493c719a9
commit
ad8babdbc9
1 changed files with 8 additions and 0 deletions
|
@ -1423,7 +1423,15 @@ exit by control + c
|
|||
^C
|
||||
```
|
||||
|
||||
##### Keep /repeatedly executing the same command (e.g Repeat 'wc -l filename' every 1 second)
|
||||
```bash
|
||||
watch -n 1 wc -l filename
|
||||
```
|
||||
|
||||
##### Print commands and their arguments when execute (e.g. echo `expr 10 + 20 `)
|
||||
```bash
|
||||
set -x; echo `expr 10 + 20 `
|
||||
```
|
||||
|
||||
## System
|
||||
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
||||
|
|
Loading…
Reference in a new issue