Help please. I can't figure out the syntax to nice a for loop on the command line.
This is my best guess:
$ nice -n 17 { for _ in {1..2}; do echo howdy; done; }
bash: syntax error near unexpected token `do'
But obviously, that's not correct.
Help please. I can't figure out the syntax to nice a for loop on the command line.
This is my best guess:
$ nice -n 17 { for _ in {1..2}; do echo howdy; done; }
bash: syntax error near unexpected token `do'
But obviously, that's not correct.
Copyright © 2021 Jogjafile Inc.
nice
is per process, and can not operate on individual shell statements.You can either start a new, nice bash instance:
Or fork one and renice that: