UGU: Unix Guru Universe - Unix Tip #4515- July 21, 2024
- Home : Help : Today's TipUnix Tip #4515- July 21, 2024
ROTATE THE ALPHABET
ROTATE THE ALPHABET
Rot13 simply rotates any
Rot13 simply rotates any
alphabet characters but 13
alphabet characters but 13
places, so the letter 'a'
places, so the letter 'a'
becomes a letter 'n', and
becomes a letter 'n', and
an 'x' becomes a 'k' etc...
an 'x' becomes a 'k' etc...
To encode a file type:
To encode a file type:
% rot13
% rot13
And repeat to decode.
And repeat to decode.
(Note original file is
(Note original file is
overwritten by encrypted
overwritten by encrypted
version.)
version.)
Simply create this small
Simply create this small
script, and save with the
script, and save with the
filename of 'rot13'
filename of 'rot13'
remembering to set
remembering to set
appropriate permissions.
appropriate permissions.
This tip generously supported by: dan.mcgrath@virginmobile.com
NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.
This tip generously supported by: dan.mcgrath@virginmobile.com
NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.