Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^5: save output of program in another file

by blue_cowdawg (Monsignor)
on Jun 07, 2013 at 13:18 UTC ( #1037675=note: print w/replies, xml ) Need Help??

in reply to Re^4: save output of program in another file
in thread save output of program in another file

      Some one told me I could redirect the output in the terminal.

To underscore what choroba said:

$ ./ > somefile.txt # create new/overwrite file # ./ >> somefile.txt # append to a file # ./ 2>&1 > somefile.txt # stdout and stderr to a file # ./ | less # stdout to stdin of a program
      I'm using linux-well ubuntu really And finally
Ubuntu is a distribution of Linux from the Debian family of Linux distros.

Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1037675]
[1nickt]: How old are your sprogs marto?
[marto]: 4, if they're good they#ll make it to 5 :P
[1nickt]: Mpph didn;t have twins bu I remember thinking that the "terrible twos" was a misnomer as age 4 seemed to be much more difficult.
LanX 4 kids and wanting to upgrade to 5? wow! ! !
[1nickt]: My lads are 15 and 31 now and both drive me just as crazy as when little, just less frequently.
[LanX]: ;p
[marto]: LanX I'd rather commit sudoku :P

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2017-11-18 18:47 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (277 votes). Check out past polls.