Re:Use long flags when scripting (2013)
by frenchy on Friday September 18, 2020 @03:08PM
(#24520730)
Particularly in this case, because `-v` sometimes means "print out the version number".
[ Parent
| on HN ]
Re:Use long flags when scripting (2013)
by jfrunyon on Friday September 18, 2020 @03:11PM
(#24520758)
That's why they mentioned `grep -v`. Go look it up. It doesn't mean verbose OR version.
Doubt you'd be printing out a version number in a shell script though.
Re:Use long flags when scripting (2013)
by cogburnd02 on Friday September 18, 2020 @03:52PM
(#24521199)
You may want to compare a version number of a command to make sure it's bigger than (or equal to) the minimum version required by your script, though.