Results 1 to 4 of 4
so i need to write the result of the "date" command in an existing text file every 2 or so hours (its weird, its a school project).
the only way ...
- 06-06-2009 #1Just Joined!
- Join Date
- Jun 2009
- Posts
- 2
[SOLVED] help with shell script
so i need to write the result of the "date" command in an existing text file every 2 or so hours (its weird, its a school project).
the only way i know of doing this is by using ">", so i would put "date > file"
the problem is this replaces any previously written data in the file, i need to write it in a new line.. i know this has something to do with the append mode..
thanks in advance
- 06-06-2009 #2
Yes, to append stdout, use >>
Not that hard to google...
- 06-06-2009 #3Linux User
- Join Date
- Jan 2007
- Location
- cleveland
- Posts
- 452
use the double ">>" notation to append
the sun is new every day (heraclitus)
- 06-06-2009 #4Just Joined!
- Join Date
- Jun 2009
- Posts
- 2
thanks a lot, im a total newbie in this stuff
, didnt even know how to google that :$


