rot13a.sh
来自「Shall高级编程」· Shell 代码 · 共 20 行
SH
20 行
#!/bin/bash# rot13a.sh: Same as "rot13.sh" script, but writes output to "secure" file.# Usage: ./rot13a.sh filename# or ./rot13a.sh <filename# or ./rot13a.sh and supply keyboard input (stdin)umask 177 # File creation mask. # Files created by this script #+ will have 600 permissions.OUTFILE=decrypted.txt # Results output to file "decrypted.txt" #+ which can only be read/written # by invoker of script (or root).cat "$@" | tr 'a-zA-Z' 'n-za-mN-ZA-M' > $OUTFILE # ^^ Input from stdin or a file. ^^^^^^^^^^ Output redirected to file. exit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?