473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

A simple question: How to echo a newline in script

nek
Hi,

Is it possible to echo a newline in window shell script?

eg.
@echo this is the 1st line
@echo ???
@echo this is the 3rd line

The result expected:
this is the 1st line
(blank line)
this is the 3rd line

Many Thanks..
Nov 12 '05 #1
5 23818
echo.
Nov 12 '05 #2
nek
Hi Adam,

It returned 'echo is on' though. Did I miss anything?

Given:
@echo this is the 1st line
@echo
@echo this is the 3rd line

The result:
this is the 1st line
echo is on
this is the 3rd line
Thanks.
"Adam Ciazynski" <NO**************@removethis.spinet.com.pl> wrote in message news:<bo**********@news.onet.pl>...
echo.

Nov 12 '05 #3
ne*****@hotmail.com (nek) wrote in message news:<1a**************************@posting.google. com>...
Hi Adam,

It returned 'echo is on' though. Did I miss anything?
@echo

The result:
echo is on


yes. you missed the point ;-)

change your line to:
@echo.

(note the point! and no space!)
Nov 12 '05 #4
> > Hi Adam,

It returned 'echo is on' though. Did I miss anything?
@echo

The result:
echo is on


yes. you missed the point ;-)

:-))

Hope all is working ok by now.

A.
Nov 12 '05 #5
nek
Hi Joerg/Adam,

You dotted my 'i'. It worked :-)

Thanks!

"Adam Ciazynski" <NO**************@removethis.spinet.com.pl> wrote in message news:<bo**********@news.onet.pl>...
Hi Adam,

It returned 'echo is on' though. Did I miss anything?
@echo

The result:
echo is on


yes. you missed the point ;-)

:-))

Hope all is working ok by now.

A.

Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dk_sz | last post by:
<? // Test example: echo '<pre>'; $aInput = ' abtgh kdghg 9867 jkuhkh ^ { ooijj 438764 - 56_ 67 '; $aInput = ereg_replace('', ',' , $aInput); echo $aInput;
1
by: Preston Crawford | last post by:
I'm looking to quickly get a photo album online. Very simple, thumbnails, a few pages, maybe a description, but hopefully a small script that's easy to edit and work into my existing site. I know...
4
by: Owen Parker | last post by:
Hi all I am not a java programmer but i can hack at it a bit. I am trying to allow a user to define the text in a simple javascript text scroller. The data is stored as multiple records in a...
13
by: comp.lang.php | last post by:
Other: <input name="school_type_other" size="30" maxlength="75" value="<?php if ($_POST) echo $_POST; else echo str_replace('"', '&quot;', str_replace('\\', '', $result->school_type_other)); ...
0
by: Grzegorz Smith | last post by:
Hi All. I 'm learning ZSI to use SOAP and I desperately need help. I'm working on example from tutorial -(examples/server/send_response/ simple/wsdl/). Here are my wsdl files...
4
keyvanrahmadi
by: keyvanrahmadi | last post by:
I have a course work questio which i like some input on, i have achieved the desired out put but the main problem is the script should be 15 lines and mine is 20 :( That said i know it can be done...
9
by: Pygmalion | last post by:
I have found dozen of useful PHP counters on the web. However, nobody is working for my web pages, since administrator does not want to enable the possibility that PHP could be called from HTML. ...
10
by: Raistlin Majere | last post by:
// there is define('VALID_MESSAGE', '/^{1,10000}$/'); // there is function validate($variable, $name, $valid, $name2, $inornot)
7
by: freddukes | last post by:
Okay... So this is my first project and I want to be able to make a tool tip appear with the basket contents whenever you hover over a link using the onmousehover='javascriptFunction()'. I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.