lammps-graphene/scripts/strain/create_animation_from_final_dumps.sh

13 lines
216 B
Bash
Raw Permalink Normal View History

2020-12-23 22:12:07 +00:00
#!/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