-1

in the pattern

<Blast>uce-506_drosophila_albomicans |uce506</BlastOutput_query-def>

I'm trying to remove |* up to (but not including) <

I tried (but doesn't achieve it)

sed 's/^|[^<]*//g' dataset2.fasta.xml >dataset2_2.fasta.xml
oguz ismail
  • 39,105
  • 12
  • 41
  • 62

1 Answers1

0

Single caret ^ means "start at the beginning of the line." Remove it:

sed 's/|[^<]*//g'
DYZ
  • 51,549
  • 10
  • 60
  • 87