From 6e79003551655a72ddf927fec0b34124ddaea131 Mon Sep 17 00:00:00 2001 From: hackbard Date: Wed, 30 Sep 2009 12:34:52 +0200 Subject: [PATCH] added script to make a video from last xyz files of video dirs --- vasp_tools/lastxyz2video | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 vasp_tools/lastxyz2video 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" -- 2.39.2