AWK Print a line only if the next line contain a particular match

Published by

Posted on January 29, 2018


awk '/\/etc\/init.d\/syslog/ { print prv_line; next } { prv_line = $0 }'


About the Author