News for hackers. Stuff that matters.
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

There are no comments on this comment yet.