Computing.Net > Forums > Linux > echo question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

echo question

Reply to Message Icon

Name: Balram Adlakha
Date: January 23, 2003 at 14:18:55 Pacific
OS: hh
CPU/Ram: hh
Comment:

Hi,
how can i write something in a file with
echo in a new line? like not destroy the
previous text?
Actually, I want to write the information
inside a shell variable to a text file, in
a new line, not destroying anything in the
previous lines...How can I achive this? can
I do it with cat?



Sponsored Link
Ads by Google

Response Number 1
Name: circuitfire
Date: January 23, 2003 at 14:28:06 Pacific
Reply:

If you use "echo text > file" it will overwrite.

If you use "echo text >> file" it will append information to the end of the file on a new line.


0
Reply to Message Icon

Related Posts

See More


renaming multiple files Macally IWebkey - Wireles...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: echo question

echo question www.computing.net/answers/linux/echo-question/30164.html

A few questions for an expert www.computing.net/answers/linux/a-few-questions-for-an-expert/9492.html

hello two questions about unix scripts www.computing.net/answers/linux/hello-two-questions-about-unix-scripts/30253.html