h-num

来自「mfold」· 代码 · 共 30 行

TXT
30
字号
#!/bin/shif [ $# -lt 1 ]; then    echo -e " *** Usage: h-num input_file o\n\t(suffix .plot is assumed for the input_file and o is optional\n\t- (o)verwrite output file input_file.h-num if it exists)\n"    exit 1elif [ -s $1.plot ]; then    if [ $# -lt 2 ]; then        overw=null    else        overw=$2    fi    if [ -s $1.h-num -a $overw != "o" ]; then        echo -e " *** A file named  $1.h-num  already exists . . .\n\yUse:  h-num $1 o  to overwrite this file.\n"	exit 1    else        cp $1.plot fort.21        h-num.exe        mv fort.22 $1.h-num        rm -f fort.21        echo -e "    ====>  Output file is $1.h-num\n"	exit 0    fielse    echo -e " *** Input dataset  "$1.plot"  does not exist or is empty.\n"    exit 1fi

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?