Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[bash] eseguire un flusso [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4792
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Wed Jan 11, 2006 2:15 pm    Post subject: [bash] eseguire un flusso [risolto] Reply with quote

Un flusso, costituito da una successione di comandi in linea è direzionato verso lo standard output.
Io desidero che, anzichè stampato, sia eseguito come un programma.
Se il flusso contenesse una riga soltanto, basterebbe usare gli apici, come per `echo ls`, ma con molte righe, riesco ad a fare solo paasticci.
_________________
vu vu vu
gentù
mi piaci tu


Last edited by cloc3 on Wed Jan 11, 2006 2:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Jan 11, 2006 2:29 pm    Post subject: Reply with quote

Code:
 echo -e 'for i in `seq 1 10`\ndo echo $i\ndone' | bash

_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4792
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Wed Jan 11, 2006 2:33 pm    Post subject: Reply with quote

makoomba wrote:
Code:
 echo -e 'for i in `seq 1 10`\ndo echo $i\ndone' | bash

Diavolo. La mettevo in pipe a source. Che pollo.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano 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