title: What means sed "1,\$s#.*/##" Linux bash
body: <p>i have a question, its new for me. I have to learn scripting in bash.
  Can someone tell me what this line mean?</p>
  <pre><code>sed &quot;1,\$s#.*/##&quot;
  </code></pre>
  <p>I'm looking for it since 2 hours. Only i know (i think i know) is that from first word to end of line (because of <code>1,\$s</code>) then i dont know what means <code>#.*/##</code>   (<code>.</code> is single char, <code>*</code>&gt;=0 and <code>#</code> comment, please correct me if im wrong). For example in this case:</p>
  <pre><code>213.241.37.114&quot;/vol/1/ftp.cdlinux.pl/iso/v0.5/MD5SUM   
  </code></pre>
  <p>it prints MD5SUM.</p>