OK so i can now comment code using ed(1) with say 1,2 s/./# &/ to comment out li...

@justine@snac.smithies.me.uk

OK so i can now comment code using ed(1) with say 1,2 s/./# &/ to comment out lines 1 to 2. Which substitutes the first character of each line with a hash and a space followed by that character.
To uncomment those 2 lines i'd just use 1,2 s/# //.
Told you I was easily pleased, 😉