Hello,
I would like to write a scrip which gives System Date for a column, is there any function I can use to print the System date.
Thanks in Advance
Regards,
Mahesh
Hello,
I would like to write a scrip which gives System Date for a column, is there any function I can use to print the System date.
Thanks in Advance
Regards,
Mahesh
I might be misunderstanding your question but what's wrong with 'date'?
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
Suggestively, you may want to change `date +%d%m%Y` to `date +%Y%m%d`.
[/my-two-cents] 