Probleme avec un petit script
Résolu
ogranyanos
Messages postés
18
Date d'inscription
Statut
Membre
Dernière intervention
-
ogranyanos Messages postés 18 Date d'inscription Statut Membre Dernière intervention -
ogranyanos Messages postés 18 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
voila mon probleme
quand je passe ces lignes de commandes ca marche (j obtient bien G00R00C00)
[root@nopfb022 ~]# var=PI-TUX-TUX100P-RDG00R00C00.SIG
[root@nopfb022 ~]# echo ${var:$( expr $( echo ${#var}) - 13):9}
G00R00C00
et en mode script ca marche pas :(
#!/bin/ksh
var=PI-TUX-TUX100P-RDG00R00C00.SIG
echo ${var:$( expr $( echo ${#var}) - 13):9}
[root@nopfb022 VDKJ2614]# ./testnew.ksh*
./testnew.ksh[5]: : bad substitution
voila mon probleme
quand je passe ces lignes de commandes ca marche (j obtient bien G00R00C00)
[root@nopfb022 ~]# var=PI-TUX-TUX100P-RDG00R00C00.SIG
[root@nopfb022 ~]# echo ${var:$( expr $( echo ${#var}) - 13):9}
G00R00C00
et en mode script ca marche pas :(
#!/bin/ksh
var=PI-TUX-TUX100P-RDG00R00C00.SIG
echo ${var:$( expr $( echo ${#var}) - 13):9}
[root@nopfb022 VDKJ2614]# ./testnew.ksh*
./testnew.ksh[5]: : bad substitution
A voir également:
- Probleme avec un petit script
- Script vidéo youtube - Guide
- Mas script - Accueil - Windows
- Ghost script - Télécharger - Polices de caractères
- Trier du plus petit au plus grand excel - Guide
- Petit 3 ✓ - Forum Word