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