lammps-graphene/scripts/strain/create_animation_from_final_dumps.sh
2020-12-23 17:12:07 -05:00

13 lines
216 B
Bash
Executable File

#!/bin/bash
mkdir -p animation
dirs=$(find . -name "min.*"|sort)
step=1
for dir in $dirs; do
final_dump_file=$(find $dir -name '*.dump'|sort -n -r|sed -n 1p)
cp $final_dump_file animation/$((step++)).dump
done