#!/bin/awk -f # Extract the filenames from par2 r or v output BEGIN { FS="\"" } infilesection && NF > 1 { print $(NF-1) } infilesection && /^$/ { infilesection-- } /Verifying source files:/ { infilesection=2 }