GNU ed 1.6 released
GNU ed 1.6 released
Posted Jan 5, 2012 2:11 UTC (Thu) by neilbrown (subscriber, #359)Parent article: GNU ed 1.6 released
If 're' is a 'regular expression', then
/re/
will search for it.
/re/p
will search and then print.
g/re/p
will apply this globally - for every line that matches 're', print the line.
So if you wanted to write a program that just printed the lines that match a regular expression - what do you call it?
Posted Feb 12, 2012 4:54 UTC (Sun)
by dirtyepic (guest, #30178)
[Link]
GNU ed 1.6 released