mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-12-23 08:46:36 +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
@ -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 New Issue
Block a user