Linux facile
Fermé
Socra!e
Messages postés
439
Date d'inscription
lundi 5 octobre 2009
Statut
Membre
Dernière intervention
6 février 2015
-
25 mai 2010 à 11:10
Socra!e Messages postés 439 Date d'inscription lundi 5 octobre 2009 Statut Membre Dernière intervention 6 février 2015 - 25 mai 2010 à 14:52
Socra!e Messages postés 439 Date d'inscription lundi 5 octobre 2009 Statut Membre Dernière intervention 6 février 2015 - 25 mai 2010 à 14:52
A voir également:
- Linux facile
- Linux mint - Télécharger - Systèmes d'exploitation
- Diskinternals linux reader - Télécharger - Stockage
- Linux live usb creator - Télécharger - Outils Internet
- Play on linux - Télécharger - Divers Utilitaires
- Quel linux choisir - Guide
3 réponses
jipicy
Messages postés
40842
Date d'inscription
jeudi 28 août 2003
Statut
Modérateur
Dernière intervention
10 août 2020
4 895
25 mai 2010 à 11:13
25 mai 2010 à 11:13
Salut,
Soit avec la commande (si installée) :
ou
Sed - Conversion retours chariots DOS (CRLF) / UNIX (LF)
Soit avec la commande (si installée) :
dos2unix
ou
Sed - Conversion retours chariots DOS (CRLF) / UNIX (LF)
Socra!e
Messages postés
439
Date d'inscription
lundi 5 octobre 2009
Statut
Membre
Dernière intervention
6 février 2015
9
25 mai 2010 à 11:23
25 mai 2010 à 11:23
Qu'est ce que je ferais pas sans toi jipicy ^^ merci encore
Socra!e
Messages postés
439
Date d'inscription
lundi 5 octobre 2009
Statut
Membre
Dernière intervention
6 février 2015
9
25 mai 2010 à 14:07
25 mai 2010 à 14:07
Je trouve pas par contre comment les supprimer tu fichier viser
ils sont toujours la
j'ai fait
#!/bin/bash
sed -ie 's/[ctrl+v] [ctrl+M]//' Copier_cle_certificat.sh
Il me créer un autre fichier " Copier_cle_certificat.she" met il y a toujours "^M"
tu vois pourquoi?
ils sont toujours la
j'ai fait
#!/bin/bash
sed -ie 's/[ctrl+v] [ctrl+M]//' Copier_cle_certificat.sh
Il me créer un autre fichier " Copier_cle_certificat.she" met il y a toujours "^M"
tu vois pourquoi?
jipicy
Messages postés
40842
Date d'inscription
jeudi 28 août 2003
Statut
Modérateur
Dernière intervention
10 août 2020
4 895
25 mai 2010 à 14:14
25 mai 2010 à 14:14
Comment fais-tu le ^M ?
Extrait :
Extrait :
[...] "^M", qui s'obtient par la séquence de touches suivante "CTRL-V" + "CTRL-M". [...]
Socra!e
Messages postés
439
Date d'inscription
lundi 5 octobre 2009
Statut
Membre
Dernière intervention
6 février 2015
9
25 mai 2010 à 14:19
25 mai 2010 à 14:19
donc je dois écrire sed -ie 's/"CTRL-V" + "CTRL-M" ou dois-je appuyez sur "CTRL" au lieu de l'écrire
jipicy
Messages postés
40842
Date d'inscription
jeudi 28 août 2003
Statut
Modérateur
Dernière intervention
10 août 2020
4 895
25 mai 2010 à 14:22
25 mai 2010 à 14:22
Tu dois appuyer sur la combinaison de touche afin d'obtenir le "^M" (sans les guillemets autour) ;-)
Socra!e
Messages postés
439
Date d'inscription
lundi 5 octobre 2009
Statut
Membre
Dernière intervention
6 février 2015
9
25 mai 2010 à 14:31
25 mai 2010 à 14:31
j'ai fait
sed -ie 's/^M//'
et cela ne marche pas, en + il me créer un nouveau document alors que je veux juste qu'il soit modifier
sed -ie 's/^M//'
et cela ne marche pas, en + il me créer un nouveau document alors que je veux juste qu'il soit modifier
jipicy
Messages postés
40842
Date d'inscription
jeudi 28 août 2003
Statut
Modérateur
Dernière intervention
10 août 2020
4 895
25 mai 2010 à 14:39
25 mai 2010 à 14:39
jp@MDK:~/tmpfs ssh$ cat -A fich Blablabla$ blibli$ bublu$ blobloblo$ jp@MDK:~/tmpfs ssh$ unix2dos fich unix2dos: converting file fich to DOS format ... jp@MDK:~/tmpfs ssh$ cat -A fich Blablabla^M$ blibli^M$ bublu^M$ blobloblo^M$ jp@MDK:~/tmpfs ssh$ sed -i 's/^M$//' fich jp@MDK:~/tmpfs ssh$ cat -A fich Blablabla$ blibli$ bublu$ blobloblo$ jp@MDK:~/tmpfs ssh$
;-))