I want to copy to clipboard something like this
$ command1
$ command2
If you run history you will get the commands in reverse order, so I want to just skip a number of lines from the tail and replace the entry line number with '$'. As you probably suspect this is a very useful shorthand when having to log your workflow or write documentation.
Example:
$ history
 1340  pass
 1341  pass insert m clouds/cloud9
 1342  pass insert -m clouds/cloud9
 1343  sudo service docker start
 1344  history
So how do you turn that into:
$ sudo service docker start
$ pass insert -m clouds/cloud9
...etc
 
     
     
    