Commit 43b6770e authored by Nong Hoang Tu's avatar Nong Hoang Tu
Browse files

Add hex-decode, hex-encode, rot13 functions

parent db152714
Pipeline #3752 failed with stages
......@@ -102,6 +102,22 @@ if [ -x /usr/bin/dircolors ]; then
alias egrep='egrep --color=auto'
fi
function hex-encode()
{
echo "$@" | xxd -p
}
function hex-decode()
{
echo "$@" | xxd -p -r
}
function rot13()
{
echo "$@" | tr 'A-Za-z' 'N-ZA-Mn-za-m'
}
# some more ls aliases
alias ll='ls -lh'
alias la='ls -lha'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment