The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
find command takes a lot of time ( can I skip directories) knijjar Shell Programming and Scripting 3 08-12-2008 09:08 PM
Query regarding the functionality of OPTIONS (SKIP=1) thayaparani Shell Programming and Scripting 1 01-21-2008 09:54 PM
skip reading certain lines in a file paulsew UNIX for Dummies Questions & Answers 5 03-26-2007 04:07 AM
Skip item by using substring rwunwla Shell Programming and Scripting 2 12-16-2005 01:12 PM
FreeBSD skip UserConfig... Enoch Chan BSD 2 09-03-2003 06:48 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-11-2005
pmpx pmpx is offline
Registered User
  
 

Join Date: Sep 2005
Location: Portugal
Posts: 20
Skip new line

Hi,
how can I skip the new line of echo? In SH!!!!

echo "the date is :"
date

and result I want is
the date is : Tue Oct 11 22:24:37 WEST 2005

I've already tried including the \c inside the echo, but it didn't work.

Thanks!
  #2 (permalink)  
Old 10-11-2005
vertigo23's Avatar
vertigo23 vertigo23 is offline
Registered User
  
 

Join Date: Jul 2005
Location: SF, CA
Posts: 73
echo -n "the date is: "
  #3 (permalink)  
Old 10-13-2005
monsanbu monsanbu is offline
Registered User
  
 

Join Date: Sep 2005
Location: Chennai,India
Posts: 12
Try this


Code:
echo "the date is :\c"
date

--Mons
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:49 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0