View previous topic :: View next topic |
Author |
Message |
dapsaille Advocate


Joined: 02 Aug 2004 Posts: 2366 Location: Paris
|
Posted: Sun Jan 08, 2006 8:59 pm Post subject: [SCRIPT SHELL] un echo `commande` formaté ? (resolu) |
|
|
Bonsoir à tous ..
Voila .. je me doute que ca doit etre ballot mais je cherche a récuperer la sortie standard d'une commande afin de l'afficher en echo ...
en l'occurence Zinc ..
un zinc --list-games me sors une petee de lignes que je souhaites récuperer pour les afficher dans un script grace à un echo ..
Hors lors du echo `zinc --list-games` il me colle tout sans formatage ...
une idée ? :p
Last edited by dapsaille on Sun Jan 08, 2006 9:29 pm; edited 1 time in total |
|
Back to top |
|
 |
guilc Bodhisattva


Joined: 15 Nov 2003 Posts: 3326 Location: Paris - France
|
|
Back to top |
|
 |
geekounet Bodhisattva


Joined: 11 Oct 2004 Posts: 3772
|
Posted: Sun Jan 08, 2006 9:09 pm Post subject: |
|
|
Ou mettre des " autour de `commande`
La question a déjà été posée ya pas longtemps. |
|
Back to top |
|
 |
dapsaille Advocate


Joined: 02 Aug 2004 Posts: 2366 Location: Paris
|
Posted: Sun Jan 08, 2006 9:27 pm Post subject: |
|
|
Merci merci merci ...
Les 2 solutions fonctionnent :p
navré pour la question déja posée mais je le répète la fonction recherche du forum est a {~#[|#|«|ŧ ...
sinon le export IFS="" correspond à quoi ? ca indique à bash de formatter ou quoi ? |
|
Back to top |
|
 |
kernelsensei Bodhisattva


Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Sun Jan 08, 2006 9:39 pm Post subject: |
|
|
dapsaille wrote: | Merci merci merci ...
Les 2 solutions fonctionnent :p
navré pour la question déja posée mais je le répète la fonction recherche du forum est a {~#[|#|«|ŧ ...
sinon le export IFS="" correspond à quoi ? ca indique à bash de formatter ou quoi ? |
En cherchant ifs sur le forum french : https://forums.gentoo.org/viewtopic-p-2989174.html#2989174 _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
 |
|