|
|
|
|
|
by sshine
3022 days ago
|
|
A use-case for lookarounds that I often use is: grep -Po '(?<=...)pattern'
Which also cuts out and prints the relevant part of the line. This saves a trip through cut, awk or perl. (-P is PCRE and -o is print only matched characters, which the lookarounds aren't a part of.) |
|