mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-08-14 00:55:48 -04:00
move shell scripts and zsh and add fav vscode themes
This commit is contained in:
parent
40077637ce
commit
e6794a8954
43 changed files with 55 additions and 34 deletions
10
shell/shell_scripts/lessons/hex_converter_real_numbers.sh
Executable file
10
shell/shell_scripts/lessons/hex_converter_real_numbers.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#! /bin/bash
|
||||
|
||||
n=0
|
||||
hex=0
|
||||
echo "Decimal to hexadecimal converter:"
|
||||
echo -n "Enter number in decimal format : "
|
||||
read n
|
||||
hex=`echo "obase=16;ibase=10; $n" | bc`
|
||||
echo "$n is equivalent \"$hex\" in hexadecimal"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue