I want to execute the VASPKIT program by using a shell script.
In the terminal, I can call the program by typing 'vaspkit'
===================== Structural Options ========================
1) VASP Input Files Generator 2) Elastic-Properties
3) K-Path Generator 4) Structure Editor
5) Catalysis-ElectroChemi Kit 6) Symmetry Search
===================== Electronic Options ========================
11) Density-of-States 21) DFT Band-Structure
23) 3D Band-Structure 25) Hybrid-DFT Band-Structure
26) Fermi-Surface 28) Band-Structure Unfolding
=========== Charge & Potential & Wavefunction Options ===========
31) Charge & Spin Density 42) Potential-Related
51) Wave-Function Analysis
====================== Misc Utilities ===========================
71) Optical-Properties 72) Molecular-Dynamics Kit
73) VASP2BoltzTraP Interface 74) USER interface
91) Semiconductor Calculator 92) 2D-Materials Kit
0) Quit
------------>>
Usually, I will choose '1':
1
==================== VASP Input Files Options ===================
101) Customize INCAR File
102) Generate KPOINTS File for SCF Calculation
103) Generate POTCAR File with Default Setting
104) Generate POTCAR File with User Specified Potential
105) Generate POSCAR File from cif (no fractional occupations)
106) Generate POSCAR File from Material Studio xsd (retain fixes)
107) Reformat POSCAR File in Specified Order of Elements
108) Successive Procedure to Generate VASP Files and Check
109) Check All VASP Files
0) Quit
9) Back
------------>>
Then enter '103' to generate the file that I want.
How to achieve this in a shell script? I thought it should be something like:
#!/bin/sh
for i in *; do cd $i;vaspkit;1;103;cd -;done
I've tried it, but it doesn't work (stoped at the first step).