Re:Use long flags when scripting (2013)
by ben509 on Friday September 18, 2020 @06:28PM
(#24522473)
The worst (well known) offender is grep -v meaning grep --invert-match just for the sheer bafflement of "verbose" now hiding what you were looking for.
[ Parent
| on HN ]
Re:Use long flags when scripting (2013)
by u801e on Saturday September 19, 2020 @10:42PM
(#24531596)
That actually comes from ed and vi. The g command would search for a line that matches a given regular expression and run the following command on that line. The v command was the inverse (search for lines that don't match the given regular expression).
The default command was to just print the line. Hence the name grep
g/re/p