cudcv@warwick.ac.uk (Rob McMahon) (09/04/89)
I hope this is the right place for this. Sed version 1.02 with the line:
sed -e "/^$logname:/{s/^[^:]*:[^:]*:[^:]*:[^:]*:\([^,:;]*\).*"'$'"/\1/" -e "q"
-e "}" -e "d"
prints the first line of the file instead of an extract from the line
beginning with $logname (this is from rn/Pnews.header). If you change it to
sed -e "/^$logname:/{" -e "s/^[^:]*:[^:]*:[^:]*:[^:]*:\([^,:;]*\).*"'$'"/\1/"
-e "q" -e "}" -e "d"
it prints the extract from the first line instead of the required line, so it
looks like the { } are being ignored.
Rob
--
UUCP: ...!mcvax!ukc!warwick!cudcv PHONE: +44 203 523037
JANET: cudcv@uk.ac.warwick ARPA: cudcv@warwick.ac.uk
Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England