mirror of
https://github.com/nushell/nushell
synced 2024-12-26 04:53:09 +00:00
Explain how to do time based bash watch (#9345)
This commit is contained in:
parent
acd2fe8c51
commit
8f4c182a0c
1 changed files with 5 additions and 0 deletions
|
@ -282,6 +282,11 @@ impl Command for Watch {
|
|||
example: r#"watch /foo/bar { |op, path| $"($op) - ($path)(char nl)" | save --append changes_in_bar.log }"#,
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
description: "Note: if you are looking to run a command every N units of time, this can be accomplished with a loop and sleep",
|
||||
example: r#"loop { command; sleep duration }"#,
|
||||
result: None,
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue