Alternative content
You have a fasta file and you want to replace:
"|"
You are told to replace that by
"_"
perl -i -p -e "s/\|/_/g" genome.fasta
-i = inplace editing
-p = loop over lines and print each line (after processing)
-e = command line script