aboutsummaryrefslogtreecommitdiff
path: root/j01/ex08/add_chelou.sh
diff options
context:
space:
mode:
Diffstat (limited to 'j01/ex08/add_chelou.sh')
-rwxr-xr-xj01/ex08/add_chelou.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/j01/ex08/add_chelou.sh b/j01/ex08/add_chelou.sh
new file mode 100755
index 0000000..05e222c
--- /dev/null
+++ b/j01/ex08/add_chelou.sh
@@ -0,0 +1,12 @@
+echo $FT_NBR1
+B10_1=$(echo $FT_NBR1 | tr "'\\$(echo '\"')?!" "01234")
+echo $B10_1
+echo $FT_NBR2
+B10_2=$(echo $FT_NBR2 | tr "mrdoc" "01234")
+echo $B10_2
+
+ADD=$(echo "ibase=5; obase=13; $B10_1 + $B10_2" | bc)
+echo $ADD
+
+ADD_CONV=$(echo $ADD | tr "0123456789abc" "gtaio luSmemf")
+echo $ADD_CONV