Warner Losh wrote in list.freebsd-current:
> In message <[EMAIL PROTECTED]> "Matthew D. Fuller" writes:
> : OK:
> : #!/bin/sh
> : (cvs status | grep '^File:' | grep -v 'Status: Up-to-date$') 2> /dev/null
> ^^ -q
Hm, that variant does not display the directory names at all.
I'd like to propose the following variant. It's a bit longer
than my first proposal, but just as efficient (maybe even more
efficient, because it doesn't have to fork two greps).
#!/bin/sh -
cvs status 2>&1 \
| awk '/^File/ && ! /Status: Up-to-date$/ {
$1 = dir "/" $2;
$2 = "";
print;
}
/cvs server: Examining/ {
dir = $4;
}'
Regards
Oliver
--
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:[EMAIL PROTECTED])
"In jedem Stück Kohle wartet ein Diamant auf seine Geburt"
(Terry Pratchett)
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message