From: utzoo!decvax!yale-com!brunix!mjb Newsgroups: net.unix-wizards Title: Re: How do you get 'sed' to append?? Article-I.D.: brunix.1542 Posted: Mon Feb 14 22:05:12 1983 Received: Thu Feb 17 05:57:29 1983 References: otuxa.199 I just love it when people post problems they have with their respective systems, like "hey, why doesn't a\ work in sed", without providing enough info on how to reconstruct the problem. The puzzle then becomes "How did he get *that* result?" Anyhow since the a\ works fine when the sed script was a file, I assumed a shell was munching the newline. The following little script shows some interesting results I discovered via brute force search. Here I am in csh; "sedfile" contains the single line: "original file" % sed a\ text sedfile command garbled: a (close, no cigar) % sed 'a\ text' sedfile command garbled: a (At least it's consistent!) Now I'm in regular shell $ sed 'a\ > text' sedfile original file text (Gee, that worked!) $ sed a\ > text sedfile command garbled: atext (AHA! that's how he did it!) Mike Braca, ..!decvax!brunix!mjb, mjb.brown@udel-relay