# Traduction ligne de commande MS-DOS

**URL:** <https://www.debian-fr.org/t/traduction-ligne-de-commande-ms-dos/16099>\
**Category:** Programmation\
**Created:** [Février 20, 2016, 6:21 UTC](https://www.debian-fr.org/t/traduction-ligne-de-commande-ms-dos/16099 "2016-02-20T18:21:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![debianhadic](https://www.debian-fr.org/user_avatar/www.debian-fr.org/debianhadic/32/3870_2.png) [@debianhadic](https://www.debian-fr.org/u/debianhadic)\
**Post date:** [Février 20, 2016, 6:21 UTC](https://www.debian-fr.org/t/traduction-ligne-de-commande-ms-dos/16099/1 "2016-02-20T18:21:27Z")

</div>

Bonjour,  
Sous MS-DOS je faisias des trucs comme ça :

```auto
c:\>for %1 in (*.txt) do find "linux" %1 >> ou.rtf
```

---

<div class="post-metadata">

**Author:** ![mattotop](https://www.debian-fr.org/user_avatar/www.debian-fr.org/mattotop/32/3942_2.png) [@mattotop](https://www.debian-fr.org/u/mattotop)\
**Post date:** [Février 20, 2016, 6:21 UTC](https://www.debian-fr.org/t/traduction-ligne-de-commande-ms-dos/16099/2 "2016-02-20T18:21:27Z")

</div>

```auto

```

---

<div class="post-metadata">

**Author:** ![debianhadic](https://www.debian-fr.org/user_avatar/www.debian-fr.org/debianhadic/32/3870_2.png) [@debianhadic](https://www.debian-fr.org/u/debianhadic)\
**Post date:** [Février 20, 2016, 6:21 UTC](https://www.debian-fr.org/t/traduction-ligne-de-commande-ms-dos/16099/3 "2016-02-20T18:21:29Z")

</div>

En fait mon exemple était avec find, mais aujourd’hui j’avais besoin de transformer plusieurs fichiers EPS en PLT avec pstoedit, donc en DOS j’aurais fait :

```auto
c:\>for %1 in (*.eps) do pstoedit -f hpgl %1 
```

En sachant que je veux une ligne de commande qui ferait l’équivalent de :  
$ pstoedit -f hpgl fichier1.eps fichier1.plt  
$ pstoedit -f hpgl fichier2.eps fichier2.plt  
$ …

---

<div class="post-metadata">

**Author:** ![mattotop](https://www.debian-fr.org/user_avatar/www.debian-fr.org/mattotop/32/3942_2.png) [@mattotop](https://www.debian-fr.org/u/mattotop)\
**Post date:** [Février 20, 2016, 6:21 UTC](https://www.debian-fr.org/t/traduction-ligne-de-commande-ms-dos/16099/4 "2016-02-20T18:21:40Z")

</div>

`find /le/chemin/que/tu/veux/explorer -name "*.eps" -exec pstoedit -f hpgl '{}' '{}'.plt \;` Ca va te donner des fichiers .eps.plt au lieu de simples .plt , mais tu te débrouilles pour affiner ça avec basename et dirname, et c’est marre.

---

<div class="post-metadata">

**Author:** ![philux31](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/p/b4bc9f/32.png) [@philux31](https://www.debian-fr.org/u/philux31)\
**Post date:** [Février 20, 2016, 6:21 UTC](https://www.debian-fr.org/t/traduction-ligne-de-commande-ms-dos/16099/5 "2016-02-20T18:21:42Z")

</div>

Où plus simplement en shell :

```auto

```
