LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-15-2004, 12:09 PM   #1
SpeedDingo
LQ Newbie
 
Registered: Aug 2002
Posts: 21

Rep: Reputation: 15
echo stuff i want to have returns


I have built web pages using php and asp well i know that you can run php scripts in the terminal but what i want to know is this:

echo "blah blah blah <break here> blah blah blah"

when i hit return i don't what all that showing up on one line i want a break where i put the <break> whats the symbol to do that?

in html its <BR> or <P> but what about at the terminal since i'm basically making a script using php to run in the terminal

it just shows <BR> if i put that in there

$variable1=blah
$variable2=blah

$variable3=$variable1+$variable2

echo "The total is <BR> $variable3"

when it echo's it's

The total is <BR> blahblah [mrobbins@bluewind mrobbins]$

even my prompt is at the end of the line
 
Old 05-15-2004, 01:00 PM   #2
Covel
Member
 
Registered: Oct 2003
Location: Portugal
Distribution: Gentoo
Posts: 116

Rep: Reputation: 16
the symbol for a new line is \n
 
Old 05-15-2004, 01:09 PM   #3
SpeedDingo
LQ Newbie
 
Registered: Aug 2002
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks! worked great!
 
  


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
When installing new stuff in suse 9.1, do you uninstall old stuff first? randon SUSE / openSUSE 1 12-25-2004 05:37 PM
Kphone echo (echo echo) scabies Linux - Software 0 10-18-2004 03:59 PM
tcp-echo server- bind() returns -1 vmbhosale Linux - Networking 1 03-15-2004 01:21 PM
echo chrismiceli Linux - General 4 04-09-2003 06:25 PM
Echo /devPrinting doesn't work, echo /usb/lp0 works, Testpage works, Printing doesn't Hegemon Linux - General 3 08-15-2002 02:13 PM


All times are GMT -5. The time now is 05:01 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration