On the second one - if that’s in code than a good IDE will not only do it with a single keypress, but will also (optionally) do it intelligently eg change only in the code, not the comments, show you a browseable preview, and offer undo should you get it wrong.
I like the shell but I also think IDEs are underrated.
I like the shell but I also think IDEs are underrated.