> printf 'g/^Comment=/d\na\n%s\n.\nwq\n' "$comment"  | ed netman.desktop [*]

Hi,

I tried to use the above command instead of:

sed -i "/Exec=netman/c\ ${line}" "${launcher}"

but found that it corrupts the destination .desktop file.

Edward


On 08/01/2016, aitor_czr <aitor_...@gnuinos.org> wrote:
> On 01/07/2016 09:34 PM, Rainer Weikusat <rainerweiku...@virginmedia.com>
> wrote:
>> printf 'g/^Comment=/d\na\n%s\n.\nwq\n' "$comment"  | ed netman.desktop
>> [*]
>
> Aitor.
>
> [*] Joseph Conrad.
>
>
_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to