I have a folder with multifasta files and I would like to extract the headers from each one of them, I've used the following command in shell
grep -e ">" *.fasta > prueba_nc.txt
the output looks like it
Adenoviridae_genomas.fasta:>AC_000001 [AC_000001] Ovine adenovirus A, complete genome. Adenoviridae_genomas.fasta:>AC_000002 [AC_000002] Bovine adenovirus B, complete genome. Adenoviridae_genomas.fasta:>AC_000003 [AC_000003] Canine adenovirus 1, complete genome.
and I would like to extract only the fragment after the ">"