I've been wondering about this for years, but never questioned it as far that I would ask this in public. I often come across websites that, for instance, explain the installation of a software in the command-line. What I don't get is why some keep the $-sign in their examples.
Example:
$ npm install -g some-package
$ gulp make
This, of course, makes it difficult to copy&paste the given example. Is this:
- pure laziness, where the author copies from this own shell?
- an intentional way to prevent copy & paste, because the author finds the read should understand what he does
- something else (explanation please)
$
:sed 's/^$ //' <<EOF | bash
, paste the list of commands, hit ENTER, type EOF, hit ENTER. To edit it for the site:sed 's/^$ //' <<EOF | xclip -sel clipboard
, paste the list of commands, hit ENTER, type EOF, hit ENTER.