Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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:

$ ./myscript.pl > somefile.txt # create new/overwrite file # ./myscript.pl >> somefile.txt # append to a file # ./myscript.pl 2>&1 > somefile.txt # stdout and stderr to a file # ./myscript.pl | 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


Comment on Re^5: save output of program in another file
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1037675]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2014-09-17 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (91 votes), past polls