Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-26-2004, 08:37 PM   #1
Registered: Aug 2004
Location: Michigan, USA
Distribution: Fedora Core 2
Posts: 42

Rep: Reputation: 15
> writes a new file, how to append?

I'm now running some programs in the /etc/rc.d/rc.local script, but I want to be able to log the outputs. Right now I have "ls > /root/systembootmessages/ls" for example. But every time I reboot, it will be over written, correct? Is there a way that I can make the output append to a file? Thanks!
Old 08-26-2004, 08:42 PM   #2
Senior Member
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,011

Rep: Reputation: 181Reputation: 181
>> instead of > if your going to do multiple appends its best to start with a empty file made with the touch command


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
pipe output to append to a text file davee Linux - Newbie 5 03-22-2016 07:44 PM
bash programming-append single line to end of file pheasand Linux - General 4 02-28-2014 09:41 AM
c++ append data to file blizunt7 Programming 3 07-04-2005 12:47 AM
tar append file juno Linux - General 5 10-24-2002 02:59 AM
append to file d-rez Linux - Newbie 2 06-20-2002 04:55 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration