-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
  • 1
  • 16
  • 47
  • 69

1 Answers1

0

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

sed 's/|[^<]*//g'
DYZ
  • 55,249
  • 10
  • 64
  • 93