Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[BASH] faire un echo "toto" sur la n ligne ? (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: Mon Feb 13, 2006 1:00 pm    Post subject: [BASH] faire un echo "toto" sur la n ligne ? (reso Reply with quote

Bonjour à tous ..

Voila j'ai besoin de créer un fichier qui contiennent n ligne que je spécifie dans un script ..

Hors si je tappes

Code:

rm fichier &&
touch fichier &&
echo "backup.tbz2" > fichier &&
echo "pilouf" > fichier &&
more fichier


il n'y as que pilouf dans le fichier ....

et la man echo ne m'as pas bien aidé :/


Last edited by dapsaille on Mon Feb 13, 2006 1:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8723
Location: ~Brussels - Belgique

PostPosted: Mon Feb 13, 2006 1:01 pm    Post subject: Reply with quote

Code:
>>

_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
dapsaille
Advocate
Advocate


Joined: 02 Aug 2004
Posts: 2366
Location: Paris

PostPosted: Mon Feb 13, 2006 1:03 pm    Post subject: Reply with quote

XavierMiller wrote:
Code:
>>


HAHAHAHA ... humm ok je cours me pendre


Merci :p
Back to top
View user's profile Send private message
anigel
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 1894
Location: Un petit bled pas loin de Limoges ;-)

PostPosted: Mon Feb 13, 2006 1:31 pm    Post subject: Reply with quote

Bonjour,

Je vois que tu es à fond dans les scripts bash en ce moment, aussi je te suggère de lire les pages relatives à ce shell, écrites par Jean Gourdin. Il y en a plusieurs, qui vont d'une intro au shell lui-même, jusqu'à la programmation de scripts. Le point de départ indispensable est ici.
_________________
Il y a 10 sortes d'individus en ce bas-monde : ceux qui causent binaire, et les autres.
Back to top
View user's profile Send private message
yoyo
Bodhisattva
Bodhisattva


Joined: 04 Mar 2003
Posts: 4273
Location: Lyon - France

PostPosted: Mon Feb 13, 2006 1:33 pm    Post subject: Reply with quote

Tu as aussi abs-guide (dans portage) :
Code:
* app-doc/abs-guide
     Homepage:            http://www.tldp.org/LDP/abs/html
     Description:         An advanced reference and a tutorial on bash shell scripting

(sur ma todo list depuis 2 ans :( ).

Enjoy !
_________________
La connaissance s'accroît quand on la partage.
JCB
Back to top
View user's profile Send private message
tlepo
Tux's lil' helper
Tux's lil' helper


Joined: 04 Sep 2003
Posts: 131
Location: Elouges (Belg.)

PostPosted: Mon Feb 13, 2006 1:44 pm    Post subject: Reply with quote

Et puis, il y a aussi ces liens: Scripts de shell avancés, qui s'appuie sur les chapitres Expressions rationnelles, Scripts de shell et Flux et sed comme éditeur de flux. :wink:

A+ T
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Mon Feb 13, 2006 1:52 pm    Post subject: Reply with quote

'alute

bon puisque chacun y va de la sienne... chez "nous" il y a aussi :

:wink:
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
dapsaille
Advocate
Advocate


Joined: 02 Aug 2004
Posts: 2366
Location: Paris

PostPosted: Mon Feb 13, 2006 2:12 pm    Post subject: Reply with quote

Merci merci merci merci


ca y est c'est foutu .... sur ma todo list j'avais fait un

echo "vie sociale" >> /todo/1st_list

mais la c'est foutu :p
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