Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SCRIPT SHELL] un echo `commande` formaté ? (resolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
dapsaille
Advocate
Advocate


Joined: 02 Aug 2004
Posts: 2366
Location: Paris

PostPosted: Sun Jan 08, 2006 8:59 pm    Post subject: [SCRIPT SHELL] un echo `commande` formaté ? (resolu) Reply with quote

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
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Sun Jan 08, 2006 9:04 pm    Post subject: Reply with quote

faire un export IFS="" juste avant devrait marcher
_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772

PostPosted: Sun Jan 08, 2006 9:09 pm    Post subject: Reply with quote

Ou mettre des " autour de `commande`
La question a déjà été posée ya pas longtemps.
Back to top
View user's profile Send private message
dapsaille
Advocate
Advocate


Joined: 02 Aug 2004
Posts: 2366
Location: Paris

PostPosted: Sun Jan 08, 2006 9:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Sun Jan 08, 2006 9:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum