View previous topic :: View next topic |
Author |
Message |
Gaap Apprentice
Joined: 28 Jul 2005 Posts: 276
|
Posted: Wed May 31, 2006 12:55 pm Post subject: Catturare output in console |
|
|
Come da topic: come posso fare a salvare l' input di un comando in un file di testo?
( me l' avevano detto ma stupidamente non me lo sono scritto )
Last edited by Gaap on Wed May 31, 2006 1:44 pm; edited 1 time in total |
|
Back to top |
|
|
Kernel78 Moderator
Joined: 24 Jun 2005 Posts: 3654
|
Posted: Wed May 31, 2006 1:31 pm Post subject: |
|
|
Non sono sicuro di avere capito, ti serve qualcosa del genere Code: | $ echo "ciao" | tee input.txt > output.txt
$ cat input.txt
ciao
$ cat output.txt
ciao | oppure non ho capito niente ? _________________ Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con Code: | grep -vE '(^[[:space:]]*($|(#|!|;|//)))' |
|
|
Back to top |
|
|
Gaap Apprentice
Joined: 28 Jul 2005 Posts: 276
|
Posted: Wed May 31, 2006 1:37 pm Post subject: |
|
|
Scusa ho sbagliato io.. dovrei catturare l' output.. :S |
|
Back to top |
|
|
Ic3M4n Advocate
Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Wed May 31, 2006 1:37 pm Post subject: |
|
|
l'output di un comando?
Code: | emerge -uDNpv world > ~/emerge.txt |
se vuoi accodare in un file usi >> al posto di > |
|
Back to top |
|
|
Gaap Apprentice
Joined: 28 Jul 2005 Posts: 276
|
Posted: Wed May 31, 2006 1:44 pm Post subject: |
|
|
Perfetto grazie 1000 era proprio quello che cercavo.. |
|
Back to top |
|
|
Ic3M4n Advocate
Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
|
Back to top |
|
|
Scen Retired Dev
Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Wed May 31, 2006 1:57 pm Post subject: |
|
|
Per avere qualche informazione in più dai una lettura qui (a me ha chiarito enormemente le idee ):
http://www.pluto.it/files/ildp/HOWTO/Bash-Prog-Intro-HOWTO/Bash-Prog-Intro-HOWTO-3.html _________________ I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny |
|
Back to top |
|
|
Gaap Apprentice
Joined: 28 Jul 2005 Posts: 276
|
Posted: Wed May 31, 2006 2:17 pm Post subject: |
|
|
Ok grazie per i link sn molto interessanti... |
|
Back to top |
|
|
|