add other

Keep /repeatedly executing the same command (e.g Repeat 'wc -l filename' every 1 second),
This commit is contained in:
onceupon 2017-09-12 16:48:24 +08:00 committed by GitHub
parent a493c719a9
commit ad8babdbc9

View File

@ -1423,7 +1423,15 @@ exit by control + c
^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 ## System
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)] [[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]