Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
6
Task/Rot-13/UNIX-Shell/rot-13-1.sh
Normal file
6
Task/Rot-13/UNIX-Shell/rot-13-1.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
rot13() {
|
||||
tr a-zA-Z n-za-mN-ZA-M
|
||||
}
|
||||
|
||||
cat "$@" | rot13
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
function rot13 () {
|
||||
rot13() {
|
||||
tr '[a-m][n-z][A-M][N-Z]' '[n-z][a-m][N-Z][A-M]'
|
||||
}
|
||||
}
|
||||
|
||||
cat ${1+"$@"} | rot13
|
||||
Loading…
Add table
Add a link
Reference in a new issue