text: user1008: Could you please suggest me how I can remove range from fasta header:like these number from below sequences which has some colons indicating the range of the genome
  :147010-147657 
  :149201-149845
  > FVJT01000004.1:147010-147657 Mycobacterium abscessus subsp. massiliense strain 974 
  GTGACCAGCAGCGCAGACCGATCCCCCGTCGAGGCGATGGTGAGCCACGCCGAGGGCGCCATCTCCGAGG
  ATGACATCGTCGCCGCCGCCCGGGAACGTGCCGTTGACCTGGGCGCGGGCCCGGTGACACCCGCGGTAGG
  
  >FSAX01000002.1:149201-149845 Mycobacterium abscessus subsp. bolletii strain 286 genome 
  ATGACGACGCCCGTCAGCTTCGATAACAGATTCTTCTCCGCAACGTGGTCTGCTATCGCGCGGCGCGAAC
  CTCAGGAGATCAAGGAGCTGCGTGCGGAGAATCTACGCGGCCTGACCGGCCACGTTCTGGAGGTGGGAGC
  
  
  user96: Alternatively, Perl provides a slightly simpler regular expression syntax (\d instead of [0-9]) that I prefer over sed.
  perl -pe 's/:\d+-\d+//' input.fasta > output.fasta
  
  
  user650: Invest some time in learning unix tools such as grep, sed and awk.
  sed -r '/^>/s/:[0-9]+-[0-9]+//' input.fasta > output.fasta
  
  This line of code matches the pattern :<numbers>-<numbers> on lines that start with > (FASTA sequence headers) and replaces that pattern with '', essentially removing text that matches the pattern.
  
original_text: 1008: <p>Could you please suggest me how I can remove range from fasta header:like these number from below sequences which has some colons indicating the range of the genome</p>
  
  <p>:147010-147657 </p>
  
  <p>:149201-149845</p>
  
  <pre><code>&gt; FVJT01000004.1:147010-147657 Mycobacterium abscessus subsp. massiliense strain 974 
  GTGACCAGCAGCGCAGACCGATCCCCCGTCGAGGCGATGGTGAGCCACGCCGAGGGCGCCATCTCCGAGG
  ATGACATCGTCGCCGCCGCCCGGGAACGTGCCGTTGACCTGGGCGCGGGCCCGGTGACACCCGCGGTAGG
  
  &gt;FSAX01000002.1:149201-149845 Mycobacterium abscessus subsp. bolletii strain 286 genome 
  ATGACGACGCCCGTCAGCTTCGATAACAGATTCTTCTCCGCAACGTGGTCTGCTATCGCGCGGCGCGAAC
  CTCAGGAGATCAAGGAGCTGCGTGCGGAGAATCTACGCGGCCTGACCGGCCACGTTCTGGAGGTGGGAGC
  </code></pre>
   96: <p>Alternatively, Perl provides a slightly simpler regular expression syntax (<code>\d</code> instead of <code>[0-9]</code>) that I prefer over <code>sed</code>.</p>
  
  <pre><code>perl -pe 's/:\d+-\d+//' input.fasta &gt; output.fasta
  </code></pre>
   650: <p>Invest some time in learning unix tools such as <code>grep</code>, <code>sed</code> and <code>awk</code>.</p>
  
  <pre><code>sed -r '/^&gt;/s/:[0-9]+-[0-9]+//' input.fasta &gt; output.fasta
  </code></pre>
  
  <p>This line of code matches the pattern <code>:&lt;numbers&gt;-&lt;numbers&gt;</code> on lines that start with <code>&gt;</code> (FASTA sequence headers) and replaces that pattern with <code>''</code>, essentially removing text that matches the pattern.</p>
  