Hallo Andreas, Genau So! Vielen Dank! Mit freundlichen Grüßen/Regards Mark Perry
Mark Perry Consultant - engaged by L.A. International Project SAP on System z Customer Oriented Validation Mail:[EMAIL PROTECTED] BB-Lab Tel: (+49)-7031-16-1785 IBM Deutschland Entwicklung GmbH Vorsitzender des Aufsichtsrats: Martin Jetter Geschäftsführung: Erich Baier Sitz der Gesellschaft: Böblingen Registergericht: Amtsgericht Stuttgart, HRB 243294 Andreas Schwab <[EMAIL PROTECTED]> 25/11/2008 00:03 To Mark Perry/Germany/Contr/[EMAIL PROTECTED] cc [email protected] Subject Re: problem with grep -vl Mark Perry <[EMAIL PROTECTED]> writes: > In the 2nd example the "grep -vl" locates _ALL_ files because the > previously matching string in not in the first line of any of the files. > Note that it again lists files ending 0600,0700,0800 even though we know > from example 1 that these files _DO_ contain the match string. > > I know that "-l" is suppose to stop on the first match, but when combined > with "-v" should it not search all lines for a possible match? "-v" tells grep to look for lines that do _not_ match the pattern. Since every one of your files contains such a line, they are all considered matching files wrt. "-l". You probably want "-L" instead. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
