The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
help in inserting values in date format
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
help in inserting values in date format
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
02-01-2008
Tytalus
Registered User
Join Date: Jun 2003
Location: Scotland
Posts: 297
I'm guessing that you mean something like the following:
Code:
# date +"%H%M%S" 135756 # date +"22%M%S" 225759 # hour=23 # date +"${hour}%M%S" 235809
Last edited by Tytalus; 02-01-2008 at
06:59 AM
.. Reason: minor typo
Tytalus
View Public Profile
Find all posts by Tytalus