Using shell scripts different then bash (nushell specifically) #513
-
Hi! We can do something like this to poll CPU usage with bash script:
But how this can be done with other command shells? As an example, in nushell same script will be something like this: |
Beta Was this translation helpful? Give feedback.
Answered by
Aylur
Jul 22, 2024
Replies: 1 comment
-
Nushell also has a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ArtemChandragupta
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nushell also has a
-c
flagJust swap out the bash call to nu
nu -c "sys cpu | get cpu_usage | math avg"