I'd like to repeat something N times:
for UNUSED in {1..16}; do echo 1; done
but shellcheck tells me ^-- SC2034: UNUSED appears unused. Verify it or export it.
What could I do?
I know-I know: # shellcheck disable=SC2034
You can also use the name _. This is a feature in JS Python, Haskell and others, and semi-commonly used in sh in e.g. read foo _ bar
Thank you for your continued support.
This was useful. Thank you!
Most helpful comment
You can also use the name
_. This is a feature in JS Python, Haskell and others, and semi-commonly used in sh in e.g.read foo _ bar