Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-05-2002, 11:29 AM   #1
LQ Newbie
Registered: Sep 2002
Location: Colorado
Distribution: MKLinux
Posts: 2

Rep: Reputation: 0
a simple text output query

How do I output on a single line? For example; if I...echo "dougp">file1...and I...echo "Douglas">file2, when file1 file2>file3... And then file3, the output is on two separate lines.
That is;

How do I get it to display on a single line? Like this;

dougp Douglas or dougp, Douglas

Today is my third day playing with Unix(Linux on my Mac), yet I'm stymied by this simple problem.
Old 09-05-2002, 11:45 AM   #2
Registered: Aug 2002
Location: Mumbai,India
Distribution: Linux Mint 12, Gentoo
Posts: 230

Rep: Reputation: 30
Try echo -n "STRING " > file1


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple query sachinh Linux - Hardware 2 12-29-2004 12:42 AM
a simple query sachinh Linux - Security 1 11-29-2004 07:13 AM
Simple MySQL Query Help xianzai Programming 3 11-01-2004 06:10 AM
Simple Home Networking Query lrt2003 Linux - Newbie 6 04-28-2004 08:56 PM
maybe NOT so simple an output query dougp Linux - General 1 09-05-2002 09:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:19 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