title: end result of bash command with a dot (.)
body: <p>I have a bash script that greps and sorts information from /etc/passwd here </p>
  
  <pre><code>export FT_LINE1=13
  export FT_LINE2=23
  cat /etc/passwd | grep -v "#"  | awk 'NR%2==1' | cut -f1 -d":" | rev | sort -r | awk -v l1="$FT_LINE1" -v l2="$FT_LINE2" 'NR&gt;=l1 &amp;&amp; NR&lt;=l2' | tr '\n' ',' | sed 's/, */, /g'
  </code></pre>
  
  <p>The result is this list</p>
  
  <pre><code>sstq_, sorebrek_brk_, soibten_, sirtsa_, sergtsop_, sec_, scodved_, rlaxcm_, rgmecived_, revreswodniw_, revressta_,
  </code></pre>
  
  <p>How can i replace the last comma with a dot (.)?  I want it to look like this</p>
  
  <pre><code>sstq_, sorebrek_brk_, soibten_, sirtsa_, sergtsop_, sec_, scodved_, rlaxcm_, rgmecived_, revreswodniw_, revressta_.
  </code></pre>