text: user16884: I'm trying to alter this string: NC_037078 1:122545 124035 into this: NC_037078.1:122545-124035 but I don´t know how.
  The document is like this:\
      1. rrn16 \
  16S ribosomal RNA [Genlisea aurea]\
  Other Aliases: C7J69_pgr001, BK572_Gau_0120\
  Genomic context: Chloroplast\
  Annotation:  NC_037078.1 (122545..124035, complement)\
  ID:` 36166080
  
  The script until now looks like this:
  code=$(ls -l | grep "Annotation" data.txt | cut -d " " -f3,4 | sed 's/[(]/:/g' | sed 's/[)]/ /g' | sed 's/[,]/ /g' | sed 's/[ ]//g' | sed 's/["."]/ /g' )
  
  Can you help me solving this problem?
  
  user4001: echo NC_037078 1:122545 124035 | sed 's/ /./1' | sed 's/ /:/g'
  Note:
  Reference: https://stackoverflow.com/questions/59047776/sed-replace-only-first-occurrence-then-only-second-occurrence-then-only-third
  
original_text: 16884: <p>I'm trying to alter this string: <code>NC_037078 1:122545 124035</code> into this: <code>NC_037078.1:122545-124035</code> but I don´t know how.</p>
  <p>The document is like this:\</p>
  <pre><code>    1. rrn16 \
  16S ribosomal RNA [Genlisea aurea]\
  Other Aliases: C7J69_pgr001, BK572_Gau_0120\
  Genomic context: Chloroplast\
  Annotation:  NC_037078.1 (122545..124035, complement)\
  ID:` 36166080
  </code></pre>
  <p>The script until now looks like this:</p>
  <pre><code>code=$(ls -l | grep &quot;Annotation&quot; data.txt | cut -d &quot; &quot; -f3,4 | sed 's/[(]/:/g' | sed 's/[)]/ /g' | sed 's/[,]/ /g' | sed 's/[ ]//g' | sed 's/[&quot;.&quot;]/ /g' )
  </code></pre>
  <p>Can you help me solving this problem?</p>
   4001: <p><code>echo NC_037078 1:122545 124035 | sed 's/ /./1' | sed 's/ /:/g'</code></p>
  <p>Note:
  Reference: <a href="https://stackoverflow.com/questions/59047776/sed-replace-only-first-occurrence-then-only-second-occurrence-then-only-third">https://stackoverflow.com/questions/59047776/sed-replace-only-first-occurrence-then-only-second-occurrence-then-only-third</a></p>
  