Date: Thu, 22 Jan 2009 15:19:53 +0100 (CET) From: Oliver Fromme <olli@lurza.secnetix.de> To: christoph.mallon@gmx.de (Christoph Mallon) Cc: freebsd-hackers@FreeBSD.ORG, xistence@0x58.com, cperciva@FreeBSD.ORG Subject: Re: freebsd-update's install_verify routine excessive stating Message-ID: <200901221419.n0MEJrsK092478@lurza.secnetix.de> In-Reply-To: <497867A9.7000801@gmx.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Christoph Mallon wrote: > Oliver Fromme schrieb: > > > cut -f 2,7 -d '|' | > > > grep -E '^f' | > > > cut -f 2 -d '|' | > > > sort -u > filelist > > > > It's unclear why there are two "cut" commands. The 7th > > field isn't used at all. Also, the -E option to grep > > After the first cut the seventh field becomes the second: Ah yes, you're right, of course. My caffeine level was insufficient, I guess. :-) > > So I would suggest to replace the whole pipe with this: > > > > awk -F "|" '$2 ~ /^f/ {print $2}' "$@" | > > sort -u > filelist > > It should print $7, see above. Right. Thanks for pointing it out. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Whatever happened to the days when hacking started at the cerebral cortex, and not at the keyboard?" -- Sid on userfriendly.org by Illiad, 2007-06-20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901221419.n0MEJrsK092478>