Skip to content

Instantly share code, notes, and snippets.

@unkcpz
Last active September 6, 2017 00:55
Show Gist options
  • Save unkcpz/6b94f5fc7008ab35f931726bd29814ba to your computer and use it in GitHub Desktop.
Save unkcpz/6b94f5fc7008ab35f931726bd29814ba to your computer and use it in GitHub Desktop.
Tianhe 2 quick commands
# 拷贝高通量运行
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