One code to find them all is a set of perl scripts to extract useful information from RepeatMasker http://doua.prabi.fr/software/one-code-to-find-them-all
One liner to remove the description information from a fasta file and just keep the identifier $ perl -p -i -e 's/>(.+?) .+/>$1/g' sample1.fa #clean #header #fasta