convert.sh

来自「通讯程序源码」· Shell 代码 · 共 36 行

SH
36
字号
:echo This shell script will convert your pre-v2.0 Pcomm support files.echo You obviously must have write permissions on the files.echo echo "Enter the directory where the files are found : \c"read DIRif [ ! -d "$DIR" ] ;then	echo oops... \"$DIR\" is not a directory	exitfiif [ ! -f "$DIR/pcomm.param" ] ;then	echo humm... no pcomm.param support file found in \"$DIR\"	exitficd $DIRecho editing pcomm.param...ex - pcomm.param << "EOF"1,$s/D_DBITS=/D_DATA_BITS=/1,$s/D_SBITS=/D_STOP_BITS=/1,$s/^HOT=/HOT_KEY=/1,$s/FLOW=/FLOW_CTRL=/1,$s/LECHO=/LOCAL_ECHO=/wqEOFif [ ! -f "$DIR/pcomm.modem" ] ;then	echo humm... no pcomm.modem support file found in \"$DIR\"	exitfiecho editing pcomm.modem...ex - pcomm.modem << "EOF"1,$g/MODEM_[1-9]b=/s/$/;/wqEOF

⌨️ 快捷键说明

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