From 9ea6ef0822e96cdeee750ec544112d9118844c5d Mon Sep 17 00:00:00 2001 From: nassimosaz <33450327+nassimosaz@users.noreply.github.com> Date: Wed, 14 Feb 2018 14:47:12 +0000 Subject: [PATCH] Add files via upload Converts text from AZERTY to QWERTY and vice versa. --- Rapid_Shell/az_qw_convert.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Rapid_Shell/az_qw_convert.sh diff --git a/Rapid_Shell/az_qw_convert.sh b/Rapid_Shell/az_qw_convert.sh new file mode 100644 index 0000000..172d049 --- /dev/null +++ b/Rapid_Shell/az_qw_convert.sh @@ -0,0 +1,19 @@ +#!/bin/sh +#!/bin/bash + +#az_qw_converter.sh by ptinaze for THC + +echo "Do you want to convert :\n\n1. QWERTY to AZERTY\n2. AZERTY to QWERTY"; read chx +if test "$chx" -eq "1"; then + sleep 1 + echo "Please, insert the text you want to convert in AZERTY"; read txt + sleep 1 + echo "$txt" | sed 'y/qQaAzZwWmM,<.;:/aAqQwWzZ,?;.:mM/' | sed "y/4'/'ù/" | sed 'y/123567890-_!@#$%^&*()[{]}¦"?/&é"(-è_çà)°1234567890^¨$£µ%§/' | sed 'y/>\\\//\/*!/' +elif test "$chx" -eq "2"; then + sleep 1 + echo "Please, insert the text you want to convert in QWERTY"; read txt + sleep 1 + echo "$txt" | sed 'y/aAqQwWzZ,?;.:mM/qQaAzZwWmM,<.;:/' | sed 'y/!\//\/>/' | sed 'y/&é"(-è_çà)°123567890^¨$£*µ%§/123567890-_!@#$%^&*()[{]}\¦"?/' | sed "y/ù'/'4/" +else + exit +fi