Post B6gfJLe9WuWFxy96Ce by ed1conf@bsd.network
 (DIR) More posts by ed1conf@bsd.network
 (DIR) Post #B6gfJLS6FisVMaVTPs by beaufils@mastodon.social
       0 likes, 0 repeats
       
       I still do not know how to input a line containing only one dot in ed.Do I have failed my life?Who will save me?Cc: @ed1conf @mwl
       
 (DIR) Post #B6gfJLe9WuWFxy96Ce by ed1conf@bsd.network
       0 likes, 0 repeats
       
       @beaufils Sadly, it's somewhat non-trivial.  The common solution is to append a character, then substitute it, such asa  x  .  s/x/.or using the -e output from diff(1) as a model, that appends two periods and then removes one:$ diff -e <(echo hello; echo world) <(echo hello; echo . ; echo world)  1a  ..  .  2s/.//@mwl
       
 (DIR) Post #B6gyAJaBjTJq5VhJDM by beaufils@mastodon.social
       0 likes, 0 repeats
       
       @phessler Thank's. I may have not failed my life :-)I always used your first solution since I discovered ed, but I though there was a nicer way to do it.I may have read the documentation correctly :-)@mwl I do not recall having read that specific case in 'Ed mastery'. Did I read it correctly or is my brain losing some cells or neurons connections?
       
 (DIR) Post #B6gyAJmwy1Wkj5fV6e by mwl@io.mwl.io
       0 likes, 0 repeats
       
       @beaufils @phessler noted for the second editon
       
 (DIR) Post #B6pUTmV5C1EN4fJasa by faxmodem@come-from.mad-scientist.club
       0 likes, 0 repeats
       
       @beaufils @ed1conf @mwl I have Never. Used. ed. Am I a failure?FTR I use sed cat and shell redirections
       
 (DIR) Post #B6pUTmg4XA1NckSN0a by ed1conf@bsd.network
       0 likes, 0 repeats
       
       @faxmodem Think of it not as a failure, but as a glorious opportunity. :flan_tea:@beaufils @mwl