Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thanks, that is what I was looking for. Just one more question for curiosity. I have to run the script now with bash script.sh, because sh script.sh does not accept <<<. If I would like to use sh instead of bash could I change the <<< for another operator? or I would have to write the script in a different way? Commented Sep 3, 2020 at 10:44
  • 1
    @Xbel: use | like that: if [ "$(echo "$CPU > $MAX" | bc)" -eq 1 ] Commented Sep 3, 2020 at 14:41