diff options
| author | Cabergs Charles <cacharle@e-r6-p7.s19.be> | 2019-07-02 23:44:43 +0200 |
|---|---|---|
| committer | Cabergs Charles <cacharle@e-r6-p7.s19.be> | 2019-07-02 23:44:43 +0200 |
| commit | f870cace58c695e417cde3c6f1ae9d3838d83bc3 (patch) | |
| tree | da718a1c479f0846d29326c63e925a35c1e9d4ee /shell01/ex08 | |
| parent | 0619a89ac7c9fc5debc3f7c6d2ee348d2d00b58a (diff) | |
| download | piscine-f870cace58c695e417cde3c6f1ae9d3838d83bc3.tar.gz piscine-f870cace58c695e417cde3c6f1ae9d3838d83bc3.tar.bz2 piscine-f870cace58c695e417cde3c6f1ae9d3838d83bc3.zip | |
c00 start, shell01 ex01 correcion
Diffstat (limited to 'shell01/ex08')
| -rwxr-xr-x | shell01/ex08/add_chelou.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/shell01/ex08/add_chelou.sh b/shell01/ex08/add_chelou.sh new file mode 100755 index 0000000..7cb1112 --- /dev/null +++ b/shell01/ex08/add_chelou.sh @@ -0,0 +1,14 @@ +echo $FT_NBR1 +B10_1=$(echo $FT_NBR1 | tr "'\\$(echo '\"')?!" "43210") +echo $B10_1 +echo $FT_NBR2 +B10_2=$(echo $FT_NBR2 | tr "mrdoc" "43210") +echo $B10_2 + +B5_ADD=$(echo "ibase=5; obase=5; $B10_1 + $B10_2" | bc) +echo "ibase=5;obase=13; $B5_ADD" | bc +# ADD=$(echo "ibase=5; obase=13; $B10_1 + $B10_2" | bc) +# echo $ADD + +ADD_CONV=$(echo $B5_ADD | tr "0123456789ABC" "gtaio luSnemf") +echo $ADD_CONV |
