Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Janis Papanagnou Newsgroups: comp.unix.shell Subject: Re: sed question Date: Sat, 20 Aug 2011 14:59:55 +0300 Organization: Aioe.org NNTP Server Lines: 17 Message-ID: References: <4117265f-36d6-481d-bf13-f618e0e08e30@g39g2000pro.googlegroups.com> <6d7eb3a7-6d94-4fac-b3c2-e8bf48e16650@y39g2000prd.googlegroups.com> <4df6eb0a-2173-43dd-a13a-a7bc285347ac@g8g2000prn.googlegroups.com> NNTP-Posting-Host: ATCkKtDQXQQMWb/99Q/FjA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.unix.shell:1743 Am 20.08.2011 14:51, schrieb hsteenkamp@lycos.com: > [...] > > OK, help me out. The general syntax is: > $ sed 's/ [pattern] / [replace-string] / [flag]' filename > > So, it must be something like: > $ sed 's/$/whatever/' filename > On my system the following does what you want... sed 's/.*/&\ &/' Janis