clear_base
来自「image processing including fourier,wavel」· 代码 · 共 58 行
TXT
58 行
#!/bin/sh#--------------------------- Shell MegaWave2 Macro --------------------------#_sccsid="%Z%MegaWave2 %R%, %M% %I%, %G%";_Prog="CLEAR_BASE"_Vers="1.0"_Date="1996"_Func="Clear the SR database directory (Shape Recognition Module)";_Auth="Lionel Moisan";_Usage=""#---- MegaWave2 - Copyright (C) 1992-94 J.F. & S.P. All Rights Reserved. ----## input: none# effect: modify the $BASEDIR directory# output: none## MegaWave2 modules used: none#----- Check syntax -----if [ $# -ne 0 ] then . .mw2_help_lg_comfi#----- Check $MY_MEGAWAVE2/tmp directory -----if [ ! -d $MY_MEGAWAVE2/tmp ]then if mkdir $MY_MEGAWAVE2/tmp then echo $MY_MEGAWAVE2"/tmp directory created." else echo "Could not create $MY_MEGAWAVE2/tmp directory !" exit 1 fifi #----- Check base directory -----if [ -z "$BASEDIR" ] then BASEDIR=$MY_MEGAWAVE2/tmp/SR_BASE echo "No BASEDIR directory !" echo "-> Setting default value "$BASEDIRfiif [ ! -d $BASEDIR ]then if mkdir $BASEDIR then echo "Base directory created." else echo "Could not create $BASEDIR directory !" exit 1 fifirm -f $BASEDIR/*.crv $BASEDIR/references $BASEDIR/signature.fimg
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?