The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help me in sending parameters from sqlplus script to unix shell script Hara Shell Programming and Scripting 2 01-29-2008 12:31 PM
Shell Script: want to insert values in database when update script runs ring Shell Programming and Scripting 1 10-25-2007 12:06 AM
here document to automate perl script that call script hogger84 Shell Programming and Scripting 3 10-22-2007 07:15 AM
returning to the parent shell after invoking a script within a script gurukottur Shell Programming and Scripting 5 09-26-2006 04:05 AM
return valuse from child script to parent script borncrazy Shell Programming and Scripting 1 08-20-2004 12:39 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-21-2003
Registered User
 

Join Date: Oct 2003
Posts: 1
Please help me with my script

Hi.

I`m going to make i simple script which prints todays date an time in this format:

*****Todays date and time is <date>

How do I do this? I`m having problems getting it on the same line.

thanks.
Forum Sponsor
  #2  
Old 10-21-2003
Cameron's Avatar
Registered User
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 490
Type the following.... #man date ....then start reading.
You'll find a lot of answers to your own questions on how things work buy making use of the man command.

Quote:
Originally posted by hoeknu
How do I do this? I`m having problems getting it on the same line.
Sorry, missed this in my initial reply.
Type the following.... #man echo ....and again start reading.
  #3  
Old 10-21-2003
cerberusofhnsg's Avatar
Registered User
 

Join Date: Jul 2003
Location: MT
Posts: 43
And the perl way:

#! /usr/bin/perl
$test=`date`;
print "DATE IS:$test\n";

you didnt state whether or not it was a shell script, perl script, etc....
__________________
***BOFH***
echo "Lunch Break">/dev/kmem
  #4  
Old 10-21-2003
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
please read the rules befor you start posting.

no homework questions.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0