The following commands sometimes require non-standard software like bioawk and seqtk.
rename scaffold headers with sequential numbers and lengths ("scaffold-N ")
bioawk -c fastx '{ print ">scaffold-" ++i" "length($seq)"\n"$seq }' < genome.fasta > new_genome.fasta
make association table of old and renamed scaffold names after above renaming command