📄 convert.sh
字号:
: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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -