#!/bin/bash
DHDfile=($(ls -1 DHD?????.xyz)) # Read all files of DHD?????.xyz
interval=$1 # Interval is the first argument.
: ${interval:=1} # If there is no argument, default value is 1.
if [ -f DHDall.xyz ] # If DHDall.xyz exist
then
rm DHDall.xyz # then delete it.
fi
touch DHDall.xyz # As DHDall.xyz is absent, touch it.
for (( i=0; i < ${#DHDfile[@]} ; i=i+$interval )) do
cat ${DHDfile[$i]} >> DHDall.xyz
done
exit
This is not a blog, but my notes and tips for research. Feel free to take any information and leave any comments or questions.
Search This Blog
Thursday, May 23, 2013
Subscribe to:
Post Comments (Atom)
Labels
- Academic Notes (4)
- BLAS (1)
- CEE618 (2)
- CentOS (1)
- Computation (1)
- Conferences (1)
- Cross compiling (1)
- Graphics (1)
- Hawaii Tour (2)
- Intel compiler (1)
- Just (1)
- Laptop (1)
- LaTex (22)
- Life and Humanity (8)
- Linux and Computing (107)
- LSF (1)
- Lyx (3)
- Macintosh (5)
- MPI (1)
- News (11)
- OpenFoam (1)
- OpenMPI (1)
- PBS (2)
- Software (4)
- SSH (2)
- torque (1)
- Touchpad (1)
- VMD (1)
- yum (1)
No comments:
Post a Comment