in reply to Re: Scanning a file for a match, printing different part of the line when found.in thread Scanning a file for a match, printing different part of the line when found.