example.sh

来自「加解密包」· Shell 代码 · 共 27 行

SH
27
字号
#!/bin/sh############################################################### Example to show how to use secure file command in shell############################################################################################################################# Modify following variables to reflect your local system env##############################################################PROG=/tony/dev/file/5/app/mf.sfile            # programPASS=/tony/dev/file/5/app/sfile.pass          # password fileCRYPT=/tony/dev/file/5/app/secret.txt.sealed  # encrypted fileCLEAR=/tony/dev/file/5/secret.txt             # clear text file##############################################################if [ -f ${PROG} ]  then    ## For encryption, uncomments following line    #${PROG} -e -in ${CLEAR} -out ${CRYPT} -p `cat ${PASS}`    ## For decryption, uncomments following line    ${PROG} -d -in ${CRYPT} -out ${CLEAR} -p `cat ${PASS}`  else    echo Program [${PROG}] does not exist, ABORT!    exit 1fi

⌨️ 快捷键说明

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