LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 09-05-2002, 10:29 AM   #1
dougp
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 I...cat file1 file2>file3... And then I...cat file3, the output is on two separate lines.
That is;
dougp
Douglas

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, 10:45 AM   #2
sandy
Member
 
Registered: Aug 2002
Location: Mumbai,India
Distribution: Linux Mint 12, Gentoo
Posts: 230

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


Reply


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-28-2004 11:42 PM
a simple query sachinh Linux - Security 1 11-29-2004 06:13 AM
Simple MySQL Query Help xianzai Programming 3 11-01-2004 05:10 AM
Simple Home Networking Query lrt2003 Linux - Newbie 6 04-28-2004 07:56 PM
maybe NOT so simple an output query dougp Linux - General 1 09-05-2002 08:42 PM


All times are GMT -5. The time now is 04:44 PM.

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