Last active
September 6, 2017 00:55
-
-
Save unkcpz/6b94f5fc7008ab35f931726bd29814ba to your computer and use it in GitHub Desktop.
Tianhe 2 quick commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 拷贝高通量运行 | |
mkdir str && find ./ -type f | xargs -I {} mv {} str ; cp ~/BIGDATA/jsy/scripts/batch_files/slurm.sh ./ && yhbatch -n 24 -N 1 -p paratera slurm.sh | |
# 查找当前文件夹下一层内所有文件夹 | |
DIRS=$(find ./ -maxdepth 1 -type d -name "vasp_tmp*") | |
# 拷贝并按ID重命名 | |
for dir in $FILES; do suffix=$(echo $dir | awk -F'_' '{print $3}'); cp $dir/relax/CONTCAR.relax.gz relaxed/POSCAR_$suffix.gz; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment