From f870cace58c695e417cde3c6f1ae9d3838d83bc3 Mon Sep 17 00:00:00 2001 From: Cabergs Charles Date: Tue, 2 Jul 2019 23:44:43 +0200 Subject: c00 start, shell01 ex01 correcion --- .gitignore | 1 + c00/ex00/ft_putchar.c | 28 ++++++++++++++++ c00/ex01/ft_print_alphabet.c | 33 ++++++++++++++++++ c00/ex02/ft_print_reverse_alphabet.c | 33 ++++++++++++++++++ c00/ex03/ft_print_numbers.c | 33 ++++++++++++++++++ c00/ex04/ft_is_negative.c | 36 ++++++++++++++++++++ c00/ex05/ft_print_comb.c | 61 ++++++++++++++++++++++++++++++++++ j00/ex00/z | 1 - j00/ex01/testShell00.tar | Bin 2048 -> 0 bytes j00/ex02/exo2.tar | Bin 6144 -> 0 bytes j00/ex03/klist.txt | 7 ---- j00/ex04/midLS | 1 - j00/ex05/git_commit.sh | 1 - j00/ex06/.gitignore | 1 - j00/ex06/git_ignore.sh | 1 - j00/ex07/b | 11 ------ j00/ex08/clean | 1 - j01/ex01/print_groups.sh | 1 - j01/ex02/find_sh.sh | 1 - j01/ex03/count_files.sh | 1 - j01/ex04/MAC.sh | 1 - "j01/ex05/\"\\?$*'MaRViN'*$?\\\"" | 1 - j01/ex06/skip.sh | 1 - j01/ex07/r_dwssap.sh | 1 - j01/ex08/add_chelou.sh | 12 ------- shell00/ex00/z | 1 + shell00/ex01/testShell00.tar | Bin 0 -> 2048 bytes shell00/ex02/exo2.tar | Bin 0 -> 6144 bytes shell00/ex03/klist.txt | 7 ++++ shell00/ex04/midLS | 1 + shell00/ex05/git_commit.sh | 1 + shell00/ex06/.gitignore | 1 + shell00/ex06/git_ignore.sh | 1 + shell00/ex07/b | 11 ++++++ shell00/ex08/clean | 1 + shell01/ex01/print_groups.sh | 1 + shell01/ex02/find_sh.sh | 1 + shell01/ex03/count_files.sh | 1 + shell01/ex04/MAC.sh | 1 + "shell01/ex05/\"\\?$*'MaRViN'*$?\\\"" | 1 + shell01/ex06/skip.sh | 1 + shell01/ex07/r_dwssap.sh | 1 + shell01/ex08/add_chelou.sh | 14 ++++++++ 43 files changed, 270 insertions(+), 43 deletions(-) create mode 100644 .gitignore create mode 100644 c00/ex00/ft_putchar.c create mode 100644 c00/ex01/ft_print_alphabet.c create mode 100644 c00/ex02/ft_print_reverse_alphabet.c create mode 100644 c00/ex03/ft_print_numbers.c create mode 100644 c00/ex04/ft_is_negative.c create mode 100644 c00/ex05/ft_print_comb.c delete mode 100644 j00/ex00/z delete mode 100644 j00/ex01/testShell00.tar delete mode 100644 j00/ex02/exo2.tar delete mode 100644 j00/ex03/klist.txt delete mode 100755 j00/ex04/midLS delete mode 100755 j00/ex05/git_commit.sh delete mode 100644 j00/ex06/.gitignore delete mode 100755 j00/ex06/git_ignore.sh delete mode 100644 j00/ex07/b delete mode 100755 j00/ex08/clean delete mode 100755 j01/ex01/print_groups.sh delete mode 100755 j01/ex02/find_sh.sh delete mode 100755 j01/ex03/count_files.sh delete mode 100755 j01/ex04/MAC.sh delete mode 100644 "j01/ex05/\"\\?$*'MaRViN'*$?\\\"" delete mode 100755 j01/ex06/skip.sh delete mode 100755 j01/ex07/r_dwssap.sh delete mode 100755 j01/ex08/add_chelou.sh create mode 100644 shell00/ex00/z create mode 100644 shell00/ex01/testShell00.tar create mode 100644 shell00/ex02/exo2.tar create mode 100644 shell00/ex03/klist.txt create mode 100755 shell00/ex04/midLS create mode 100755 shell00/ex05/git_commit.sh create mode 100644 shell00/ex06/.gitignore create mode 100755 shell00/ex06/git_ignore.sh create mode 100644 shell00/ex07/b create mode 100755 shell00/ex08/clean create mode 100755 shell01/ex01/print_groups.sh create mode 100755 shell01/ex02/find_sh.sh create mode 100755 shell01/ex03/count_files.sh create mode 100755 shell01/ex04/MAC.sh create mode 100644 "shell01/ex05/\"\\?$*'MaRViN'*$?\\\"" create mode 100755 shell01/ex06/skip.sh create mode 100755 shell01/ex07/r_dwssap.sh create mode 100755 shell01/ex08/add_chelou.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cba7efc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +a.out diff --git a/c00/ex00/ft_putchar.c b/c00/ex00/ft_putchar.c new file mode 100644 index 0000000..b09b871 --- /dev/null +++ b/c00/ex00/ft_putchar.c @@ -0,0 +1,28 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_putchar.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/07/02 22:03:32 by cacharle #+# #+# */ +/* Updated: 2019/07/02 22:33:32 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include + +void ft_putchar(char c); + +void ft_putchar(char c) +{ + write(1, &c, 1); +} + +int main(void) +{ + ft_putchar('a'); + ft_putchar('b'); + ft_putchar('c'); + return (0); +} diff --git a/c00/ex01/ft_print_alphabet.c b/c00/ex01/ft_print_alphabet.c new file mode 100644 index 0000000..f75442d --- /dev/null +++ b/c00/ex01/ft_print_alphabet.c @@ -0,0 +1,33 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_print_alphabet.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/07/02 22:18:43 by cacharle #+# #+# */ +/* Updated: 2019/07/02 22:33:52 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include + +void ft_print_alphabet(void); + +void ft_print_alphabet(void) +{ + char letter; + + letter = 'a'; + while (letter != 'z' + 1) + { + write(1, &letter, 1); + letter++; + } +} + +int main(void) +{ + ft_print_alphabet(); + return (0); +} diff --git a/c00/ex02/ft_print_reverse_alphabet.c b/c00/ex02/ft_print_reverse_alphabet.c new file mode 100644 index 0000000..d36b6c0 --- /dev/null +++ b/c00/ex02/ft_print_reverse_alphabet.c @@ -0,0 +1,33 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_print_reverse_alphabet.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/07/02 22:27:12 by cacharle #+# #+# */ +/* Updated: 2019/07/02 22:31:18 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include + +void ft_print_reverse_alphabet(void); + +void ft_print_reverse_alphabet(void) +{ + char letter; + + letter = 'z'; + while (letter != 'a' - 1) + { + write(1, &letter, 1); + letter--; + } +} + +int main(void) +{ + ft_print_reverse_alphabet(); + return (0); +} diff --git a/c00/ex03/ft_print_numbers.c b/c00/ex03/ft_print_numbers.c new file mode 100644 index 0000000..9f8f947 --- /dev/null +++ b/c00/ex03/ft_print_numbers.c @@ -0,0 +1,33 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_print_numbers.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/07/02 22:36:58 by cacharle #+# #+# */ +/* Updated: 2019/07/02 22:40:46 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include + +void ft_print_numbers(void); + +void ft_print_numbers(void) +{ + char number; + + number = '0'; + while (number != '9' + 1) + { + write(1, &number, 1); + number++; + } +} + +int main(void) +{ + ft_print_numbers(); + return (0); +} diff --git a/c00/ex04/ft_is_negative.c b/c00/ex04/ft_is_negative.c new file mode 100644 index 0000000..58c1b60 --- /dev/null +++ b/c00/ex04/ft_is_negative.c @@ -0,0 +1,36 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_is_negative.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/07/02 22:43:22 by cacharle #+# #+# */ +/* Updated: 2019/07/02 22:50:01 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include + +void ft_is_negative(int n); + +void ft_is_negative(int n) +{ + char negative_char; + char positive_char; + + negative_char = 'N'; + positive_char = 'P'; + if (n < 0) + write(1, &negative_char, 1); + else + write(1, &positive_char, 1); +} + +int main(void) +{ + ft_is_negative(-1); + ft_is_negative(1); + ft_is_negative(0); + return (0); +} diff --git a/c00/ex05/ft_print_comb.c b/c00/ex05/ft_print_comb.c new file mode 100644 index 0000000..1a1ddf3 --- /dev/null +++ b/c00/ex05/ft_print_comb.c @@ -0,0 +1,61 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_print_comb.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/07/02 22:55:29 by cacharle #+# #+# */ +/* Updated: 2019/07/02 23:14:29 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include + +void ft_print_comb(void); + +void write_xyz_comb(int x, int y, int z) +{ + char x_char; + char y_char; + char z_char; + + x_char = x + '0'; + y_char = y + '0'; + z_char = z + '0'; + write(1, &x_char, 1); + write(1, &y_char, 1); + write(1, &z_char, 1); +} + +void ft_print_comb(void) +{ + char x; + char y; + char z; + + x = 0; + y = 0; + z = 0; + while (x < 10) + { + while (y < 10) + { + while (z < 10) + { + if (x != y && x != z && y != z) + write_xyz_comb(x, y, z); + z++; + } + y++; + } + x++; + } +} + +int main(void) +{ + ft_print_comb(); + return (0); +} + diff --git a/j00/ex00/z b/j00/ex00/z deleted file mode 100644 index e900b1c..0000000 --- a/j00/ex00/z +++ /dev/null @@ -1 +0,0 @@ -Z diff --git a/j00/ex01/testShell00.tar b/j00/ex01/testShell00.tar deleted file mode 100644 index 000c1fc..0000000 Binary files a/j00/ex01/testShell00.tar and /dev/null differ diff --git a/j00/ex02/exo2.tar b/j00/ex02/exo2.tar deleted file mode 100644 index 9bd61b0..0000000 Binary files a/j00/ex02/exo2.tar and /dev/null differ diff --git a/j00/ex03/klist.txt b/j00/ex03/klist.txt deleted file mode 100644 index 19c5ebc..0000000 --- a/j00/ex03/klist.txt +++ /dev/null @@ -1,7 +0,0 @@ -Credentials cache: API:57199 - Principal: cacharle@S19.BE - - Issued Expires Principal -Jul 1 11:43:10 2019 Jul 1 21:43:10 2019 krbtgt/S19.BE@S19.BE -Jul 1 11:43:11 2019 Jul 1 21:43:10 2019 ldap/ldap-master.s19.be@S19.BE -Jul 1 11:43:11 2019 Jul 1 21:43:10 2019 HTTP/san-ssd.s19.be@S19.BE diff --git a/j00/ex04/midLS b/j00/ex04/midLS deleted file mode 100755 index 2b9b431..0000000 --- a/j00/ex04/midLS +++ /dev/null @@ -1 +0,0 @@ -ls -ptUm diff --git a/j00/ex05/git_commit.sh b/j00/ex05/git_commit.sh deleted file mode 100755 index 4a62cc5..0000000 --- a/j00/ex05/git_commit.sh +++ /dev/null @@ -1 +0,0 @@ -git --no-pager log -n 5 --pretty=%H diff --git a/j00/ex06/.gitignore b/j00/ex06/.gitignore deleted file mode 100644 index f539d25..0000000 --- a/j00/ex06/.gitignore +++ /dev/null @@ -1 +0,0 @@ -find . -print | git check-ignore --stdin | sed -e "s/\.\///" diff --git a/j00/ex06/git_ignore.sh b/j00/ex06/git_ignore.sh deleted file mode 100755 index f539d25..0000000 --- a/j00/ex06/git_ignore.sh +++ /dev/null @@ -1 +0,0 @@ -find . -print | git check-ignore --stdin | sed -e "s/\.\///" diff --git a/j00/ex07/b b/j00/ex07/b deleted file mode 100644 index c2dab24..0000000 --- a/j00/ex07/b +++ /dev/null @@ -1,11 +0,0 @@ -Episode V, A NEW H0PE It is a period of civil war -Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire. -During the battle, Rebel spies managed to steal secret plans to the Empire's ultimate weapon, the STAR DEATH, an armored space station with enough power to destroy an entire planet. - - -Pursued by the Empire's sinister agents, -Princess Mehdi races home aboard her starship, custodian of the stolen plans that can save her people and restore the dictatorship to the galaxie.. - - - - diff --git a/j00/ex08/clean b/j00/ex08/clean deleted file mode 100755 index 43d8991..0000000 --- a/j00/ex08/clean +++ /dev/null @@ -1 +0,0 @@ -find . -type f \( -name "*~" -o -name "#*#" \) -print -delete | sed "s/.*\///g" diff --git a/j01/ex01/print_groups.sh b/j01/ex01/print_groups.sh deleted file mode 100755 index b233ef0..0000000 --- a/j01/ex01/print_groups.sh +++ /dev/null @@ -1 +0,0 @@ -groups $FT_USER | tr " " "," diff --git a/j01/ex02/find_sh.sh b/j01/ex02/find_sh.sh deleted file mode 100755 index 3f13587..0000000 --- a/j01/ex02/find_sh.sh +++ /dev/null @@ -1 +0,0 @@ -find . -type f -name "*.sh" | sed "s/.*\///g" | sed "s/\.sh//g" diff --git a/j01/ex03/count_files.sh b/j01/ex03/count_files.sh deleted file mode 100755 index 4b9918a..0000000 --- a/j01/ex03/count_files.sh +++ /dev/null @@ -1 +0,0 @@ -echo $(find . -type f -o -type d | wc -w) diff --git a/j01/ex04/MAC.sh b/j01/ex04/MAC.sh deleted file mode 100755 index ec2dc93..0000000 --- a/j01/ex04/MAC.sh +++ /dev/null @@ -1 +0,0 @@ -ifconfig -a | grep -E "ether\s([0-9a-f]{2}:){5}[0-9a-f]{2}" | sed "s/.*ether //g" | sed "s/ $//g" | sort | uniq diff --git "a/j01/ex05/\"\\?$*'MaRViN'*$?\\\"" "b/j01/ex05/\"\\?$*'MaRViN'*$?\\\"" deleted file mode 100644 index f70d7bb..0000000 --- "a/j01/ex05/\"\\?$*'MaRViN'*$?\\\"" +++ /dev/null @@ -1 +0,0 @@ -42 \ No newline at end of file diff --git a/j01/ex06/skip.sh b/j01/ex06/skip.sh deleted file mode 100755 index 830c966..0000000 --- a/j01/ex06/skip.sh +++ /dev/null @@ -1 +0,0 @@ -ls -l | awk '(NR - 1) % 2 == 0 { print }' diff --git a/j01/ex07/r_dwssap.sh b/j01/ex07/r_dwssap.sh deleted file mode 100755 index e40a78b..0000000 --- a/j01/ex07/r_dwssap.sh +++ /dev/null @@ -1 +0,0 @@ -cat /etc/passwd | sed '/ *#.*/d' | awk 'NR % 2 == 0 { print }' | cut -d : -f 1 | rev | sort -r | awk 'NR >= '$FT_LINE1' && NR <= '$FT_LINE2' { print }' | paste -sd "," - | sed "s/\,/, /g" | sed "s/$/./" diff --git a/j01/ex08/add_chelou.sh b/j01/ex08/add_chelou.sh deleted file mode 100755 index 05e222c..0000000 --- a/j01/ex08/add_chelou.sh +++ /dev/null @@ -1,12 +0,0 @@ -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 diff --git a/shell00/ex00/z b/shell00/ex00/z new file mode 100644 index 0000000..e900b1c --- /dev/null +++ b/shell00/ex00/z @@ -0,0 +1 @@ +Z diff --git a/shell00/ex01/testShell00.tar b/shell00/ex01/testShell00.tar new file mode 100644 index 0000000..000c1fc Binary files /dev/null and b/shell00/ex01/testShell00.tar differ diff --git a/shell00/ex02/exo2.tar b/shell00/ex02/exo2.tar new file mode 100644 index 0000000..9bd61b0 Binary files /dev/null and b/shell00/ex02/exo2.tar differ diff --git a/shell00/ex03/klist.txt b/shell00/ex03/klist.txt new file mode 100644 index 0000000..19c5ebc --- /dev/null +++ b/shell00/ex03/klist.txt @@ -0,0 +1,7 @@ +Credentials cache: API:57199 + Principal: cacharle@S19.BE + + Issued Expires Principal +Jul 1 11:43:10 2019 Jul 1 21:43:10 2019 krbtgt/S19.BE@S19.BE +Jul 1 11:43:11 2019 Jul 1 21:43:10 2019 ldap/ldap-master.s19.be@S19.BE +Jul 1 11:43:11 2019 Jul 1 21:43:10 2019 HTTP/san-ssd.s19.be@S19.BE diff --git a/shell00/ex04/midLS b/shell00/ex04/midLS new file mode 100755 index 0000000..2b9b431 --- /dev/null +++ b/shell00/ex04/midLS @@ -0,0 +1 @@ +ls -ptUm diff --git a/shell00/ex05/git_commit.sh b/shell00/ex05/git_commit.sh new file mode 100755 index 0000000..4a62cc5 --- /dev/null +++ b/shell00/ex05/git_commit.sh @@ -0,0 +1 @@ +git --no-pager log -n 5 --pretty=%H diff --git a/shell00/ex06/.gitignore b/shell00/ex06/.gitignore new file mode 100644 index 0000000..f539d25 --- /dev/null +++ b/shell00/ex06/.gitignore @@ -0,0 +1 @@ +find . -print | git check-ignore --stdin | sed -e "s/\.\///" diff --git a/shell00/ex06/git_ignore.sh b/shell00/ex06/git_ignore.sh new file mode 100755 index 0000000..f539d25 --- /dev/null +++ b/shell00/ex06/git_ignore.sh @@ -0,0 +1 @@ +find . -print | git check-ignore --stdin | sed -e "s/\.\///" diff --git a/shell00/ex07/b b/shell00/ex07/b new file mode 100644 index 0000000..c2dab24 --- /dev/null +++ b/shell00/ex07/b @@ -0,0 +1,11 @@ +Episode V, A NEW H0PE It is a period of civil war +Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire. +During the battle, Rebel spies managed to steal secret plans to the Empire's ultimate weapon, the STAR DEATH, an armored space station with enough power to destroy an entire planet. + + +Pursued by the Empire's sinister agents, +Princess Mehdi races home aboard her starship, custodian of the stolen plans that can save her people and restore the dictatorship to the galaxie.. + + + + diff --git a/shell00/ex08/clean b/shell00/ex08/clean new file mode 100755 index 0000000..43d8991 --- /dev/null +++ b/shell00/ex08/clean @@ -0,0 +1 @@ +find . -type f \( -name "*~" -o -name "#*#" \) -print -delete | sed "s/.*\///g" diff --git a/shell01/ex01/print_groups.sh b/shell01/ex01/print_groups.sh new file mode 100755 index 0000000..b3d02de --- /dev/null +++ b/shell01/ex01/print_groups.sh @@ -0,0 +1 @@ +groups $FT_USER | tr " " "," | tr -d "\n" diff --git a/shell01/ex02/find_sh.sh b/shell01/ex02/find_sh.sh new file mode 100755 index 0000000..3f13587 --- /dev/null +++ b/shell01/ex02/find_sh.sh @@ -0,0 +1 @@ +find . -type f -name "*.sh" | sed "s/.*\///g" | sed "s/\.sh//g" diff --git a/shell01/ex03/count_files.sh b/shell01/ex03/count_files.sh new file mode 100755 index 0000000..4b9918a --- /dev/null +++ b/shell01/ex03/count_files.sh @@ -0,0 +1 @@ +echo $(find . -type f -o -type d | wc -w) diff --git a/shell01/ex04/MAC.sh b/shell01/ex04/MAC.sh new file mode 100755 index 0000000..8c5f269 --- /dev/null +++ b/shell01/ex04/MAC.sh @@ -0,0 +1 @@ +ifconfig -a | grep -E "ether\s([0-9a-f]{2}:){5}[0-9a-f]{2}" | cut -f 1 diff --git "a/shell01/ex05/\"\\?$*'MaRViN'*$?\\\"" "b/shell01/ex05/\"\\?$*'MaRViN'*$?\\\"" new file mode 100644 index 0000000..f70d7bb --- /dev/null +++ "b/shell01/ex05/\"\\?$*'MaRViN'*$?\\\"" @@ -0,0 +1 @@ +42 \ No newline at end of file diff --git a/shell01/ex06/skip.sh b/shell01/ex06/skip.sh new file mode 100755 index 0000000..830c966 --- /dev/null +++ b/shell01/ex06/skip.sh @@ -0,0 +1 @@ +ls -l | awk '(NR - 1) % 2 == 0 { print }' diff --git a/shell01/ex07/r_dwssap.sh b/shell01/ex07/r_dwssap.sh new file mode 100755 index 0000000..e40a78b --- /dev/null +++ b/shell01/ex07/r_dwssap.sh @@ -0,0 +1 @@ +cat /etc/passwd | sed '/ *#.*/d' | awk 'NR % 2 == 0 { print }' | cut -d : -f 1 | rev | sort -r | awk 'NR >= '$FT_LINE1' && NR <= '$FT_LINE2' { print }' | paste -sd "," - | sed "s/\,/, /g" | sed "s/$/./" 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 -- cgit