Echo plusieurs noms de fichiers
Résolu
michael_scott
Messages postés
65
Statut
Membre
-
michael_scott Messages postés 65 Statut Membre -
michael_scott Messages postés 65 Statut Membre -
Bonjour,
Je m'explique,
j'ai 3 fichiers dans le même répertoire:
image_1.png image_2.png image_3.png
$echo *.png > toto
il sera écrit dans toto : image_1.png image_2.png image_3.png
Je souhaiterai avoir un rendu en colonne tel :
image_1.png
image_2.png
image_3.png
Je m'explique,
j'ai 3 fichiers dans le même répertoire:
image_1.png image_2.png image_3.png
$echo *.png > toto
il sera écrit dans toto : image_1.png image_2.png image_3.png
Je souhaiterai avoir un rendu en colonne tel :
image_1.png
image_2.png
image_3.png
2 réponses
-
hello
essayerprintf "%s\n" *.png > toto
-
Tu peux pas concaténer un retour chariot ? genre "\n"
tiens :
https://forums.commentcamarche.net/forum/affich-19644843-shell-retour-chariot-dans-une-chaine