And the program stopped.
]]>Multiwfn XXXX.fchk << EOF
5
0
2
-,ZZZZ.fchk
-,YYYY.fchk
1
3
2
EOF
After running it, you will have density.cub in current folder. Then you can use "mv" command to rename it.
]]>Multiwfn XXXX.fchk > XXXX.cub
5
0
2
-,ZZZZ.fchk
-,YYYY.fchk
1
3
4
0.001
2
EOF