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

13 lines
204 B
Bash
Executable File

#!/bin/bash
mkdir -p resolute_animation
dumps=$(find . -name '*.dump'|sed 's/.dump$//'|sort -n|sed 's/$/.dump/'|less)
step=1
for dump in $dumps; do
cp $dump resolute_animation/$((step++)).dump
done