The UNIX and Linux Forums  

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



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-15-2008
Wolja's Avatar
Wolja Wolja is offline
Registered User
 

Join Date: Feb 2002
Posts: 15
Quote:
Originally Posted by gmahesh2k View Post
I would like to echo the System date and time and print it whenever I run the script so that I have a record of the script run date

Thanks and regards,
Mahesh
Assuming I understand this you want something like
date data

data=something

echo "`date +%d%m%Y`{Separator}$data" >> file

cat file
16052008{Separator}something

Last edited by Wolja; 05-15-2008 at 05:31 PM. Reason: completing post
Reply With Quote