awk '/\/etc\/init.d\/syslog/ { print prv_line; next } { prv_line = $0 }'
The post AWK Print a line only if the next line contain a particular match appeared first on OpenKB::Server Technical Papers.
awk '/\/etc\/init.d\/syslog/ { print prv_line; next } { prv_line = $0 }'
The post AWK Print a line only if the next line contain a particular match appeared first on OpenKB::Server Technical Papers.