From: hackbard Date: Wed, 30 Sep 2009 10:34:52 +0000 (+0200) Subject: added script to make a video from last xyz files of video dirs X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=6e79003551655a72ddf927fec0b34124ddaea131;p=physik%2Fposic.git added script to make a video from last xyz files of video dirs --- diff --git a/vasp_tools/lastxyz2video b/vasp_tools/lastxyz2video new file mode 100755 index 0000000..f2f3142 --- /dev/null +++ b/vasp_tools/lastxyz2video @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -d video ]; then + echo "moving video directory ..." + mv -v video v_tmp +fi + +mkdir video + +for i in video.??; do + cp -v `ls $i/atomic_conf*.xyz | tail -1` \ + video/atomic_conf_`echo $i | awk -F. '{ print $2 }'`.xyz; +done + +echo "done"