Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Rob McMahon
Sun, 03 Sep 1989 21:00
sed 1.02 - Bug with { } ?
Author: Rob McMahon
Date: Sun, 03 Sep 1989 21:00
Date: Sun, 03 Sep 1989 21:00
19 lines
1211 bytes
1211 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads