Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Dec 2001 12:35:44 -0000
From:      "Kjell" <kmidtset@c2i.net>
To:        freebsd-questions@freebsd.org
Subject:   ed in script
Message-ID:  <3C0A2020.10356.110DA70@localhost>

next in thread | raw e-mail | index | archive | help
List members
When I type in the following sequence:
====
ed /etc/motd
3
,.$d
i
line 1
line 2
.
w
q
====
everything comes out as expected.

When I save the following sequence in the file motdclean:
====
ed -s /etc/motd <<XXX
3
.,$d
i
line 1
line 2
.
w
q
XXX
====
and type the command
# sh motdclean
the deleate command is ignored, and the entire original motd is copied.
What am I missing?
Regads from Kjell



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C0A2020.10356.110DA70>