title: ed - line editor (what does $p do?)
body: <p>I am using ed a unix line editor and the book i'm reading says to type 1,$p 
  (also works in vim)</p>
  
  <p>after trial and error I figured the first value means the line number but whats the purpose to $p? from what i can tell is the 1 goes to the beginning of the line and $p goes to the EOF and displays to me everything it picked up. is this true or am i way off?</p>