diff options
| author | jerome <jerome@xlinfo.fr> | 2024-03-10 22:36:44 +0100 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2024-03-10 22:36:44 +0100 |
| commit | 9c6790810256c826f71e0a0a3c4b54844cc24477 (patch) | |
| tree | 1d3d72ec4e927c77ac6ca84af80f89f4144f5af7 /exemple3 | |
| parent | db7f0267f0c836b6a06d42c71757da4366b88a34 (diff) | |
| download | bash_tutorial-9c6790810256c826f71e0a0a3c4b54844cc24477.tar.gz bash_tutorial-9c6790810256c826f71e0a0a3c4b54844cc24477.zip | |
maj palindrome
Diffstat (limited to 'exemple3')
| -rwxr-xr-x | exemple3 | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -5,15 +5,24 @@ mot2=World #longueur de la chaîne echo $mot1 a ${#mot1} lettres -echo $mot2 a ${#mot2} lettres +echo $mot2 a ${#mot2} lettres +echo # concaténation concat=$mot1$mot2 +echo $concat +#ou +concat=$mot1 +concat+=$mot2 +echo $concat +echo echo $concat a ${#concat} lettres +echo # phrase phrase="$mot1 $mot2 !" echo "\"$phrase\" a ${#phrase} lettres (y compris les espaces)" +echo # substitution echo ${concat/h/H} |
