Skip to content

Commit ce9b06c

Browse files
committed
feat: add octal-to-hexadecimal converter
Signed-off-by: Lucas Larson <[email protected]>
1 parent 575c797 commit ce9b06c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

custom/aliases.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ octal_to_decimal() {
124124
base_to_base "${1-}" 8 A
125125
}
126126
alias -- oct2dec='octal_to_decimal'
127+
octal_to_hexadecimal() {
128+
base_to_base "${1-}" 8 16
129+
}
127130
decimal_to_octal() {
128131
base_to_base "${1-}" A 8
129132
}

0 commit comments

Comments
 (0)