Interdire l'affichage d'un caractere
Résolu/Fermé
chrisee
Messages postés
171
Date d'inscription
dimanche 23 février 2014
Statut
Membre
Dernière intervention
29 juillet 2017
-
19 mars 2016 à 20:04
chrisee Messages postés 171 Date d'inscription dimanche 23 février 2014 Statut Membre Dernière intervention 29 juillet 2017 - 19 mars 2016 à 22:01
chrisee Messages postés 171 Date d'inscription dimanche 23 février 2014 Statut Membre Dernière intervention 29 juillet 2017 - 19 mars 2016 à 22:01
A voir également:
- Interdire l'affichage d'un caractere
- Caractère ascii - Guide
- Caractere speciaux - Guide
- Caractère spéciaux - Guide
- Caractère spéciaux mac clavier - Guide
- Caractère invisible - Forum Windows
1 réponse
zipe31
Messages postés
36402
Date d'inscription
dimanche 7 novembre 2010
Statut
Contributeur
Dernière intervention
27 janvier 2021
6 407
19 mars 2016 à 20:09
19 mars 2016 à 20:09
Salut,
$ var=$(host 192.168.10.58|cut -d " " -f 5)
$ echo "${var}"
Mint-Qiana.localdomain.
$ echo "${var%*.}"
Mint-Qiana.localdomain
$ ping "${var%*.}"
PING Mint-Qiana.localdomain (192.168.10.58) 56(84) bytes of data.
64 bytes from Mint-Qiana.localdomain (192.168.10.58): icmp_seq=1 ttl=64 time=0.022 ms
64 bytes from Mint-Qiana.localdomain (192.168.10.58): icmp_seq=2 ttl=64 time=0.031 ms
64 bytes from Mint-Qiana.localdomain (192.168.10.58): icmp_seq=3 ttl=64 time=0.031 ms
64 bytes from Mint-Qiana.localdomain (192.168.10.58): icmp_seq=4 ttl=64 time=0.031 ms
--- Mint-Qiana.localdomain ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2998ms
rtt min/avg/max/mdev = 0.022/0.028/0.031/0.007 ms
19 mars 2016 à 22:01