dbeez,
I think it worked, however it found a matching string in
./spider, which of course was part of the sed command, not an email address.
The output of my commands should be something like:
[tt]./filename: email@address.one
./subdir/filename2: email@address.two[/tt]
\1, \2, \... are used for pulling chunks out of the matched
string and putting them into the replacement. Some more examples:
s/.*\([0-9]\)*.*/\1/ would pull the first occurrence of a number out of a line.
s/\([a-z]\) \([a-z]\)/\2 \1/ would swap around two lower-case strings, e.g. "apples oranges" would become "oranges apples".
These work in
vi too of course.
Regarding
-e, maybe this chunk of man page (from Solaris) will clarify:
[tt] -e script
script is an edit command for sed. See USAGE below for
more information on the format of script. If there is
just one -e option and no -f options, the flag -e may
be omitted.[/tt]
I'll leave adapting my solutions to your requirements as an exercise for you since you seem to be well on the way there.
Annihilannic.