delimiter error?
Andres Susarret
andres at CIS.OHIO-STATE.EDU
Thu Sep 20 13:01:13 AEST 1990
I've been unsuccessful in getting a line like
echo `egrep "^Subject:" ~/generic-news-article`
to work if the string egrep finds has a "/" (slash-mark) in it.
(Yes, I know this is redundant :)
An example line in the file "generic-news-article" might be
Subject: Tell me if I am right/wrong
and the the resulting error message is
right/: No such file or directory
When I take away the echo and the back-quotes(?) and use only
egrep "^Subject:" ~/generic-news-article
it works.
Am I right in thinking that egrep is confusing the search string argument with
the file arguments? I haven't succeeded with various combinations of quotes
and double-quotes, and I've already tried using egrep's -e option.
Could someone clue me in on how to handle this?
(I prefer e-mail, but I also try to keep up w/ Usenet....)
Thanks,
-andres
--
Andres Susarret CIS "operator" :)
andres at cis.ohio-state.edu Ohio State University
More information about the Comp.unix.questions
mailing list