]> hackdaworld.org Git - physik/posic.git/commitdiff
added script to make a video from last xyz files of video dirs
authorhackbard <hackbard@sage.physik.uni-augsburg.de>
Wed, 30 Sep 2009 10:34:52 +0000 (12:34 +0200)
committerhackbard <hackbard@sage.physik.uni-augsburg.de>
Wed, 30 Sep 2009 10:34:52 +0000 (12:34 +0200)
vasp_tools/lastxyz2video [new file with mode: 0755]

diff --git a/vasp_tools/lastxyz2video b/vasp_tools/lastxyz2video
new file mode 100755 (executable)
index 0000000..f2f3142
--- /dev/null
@@ -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"