The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 02-01-2008
Tytalus's Avatar
Tytalus Tytalus is offline
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
Reply With Quote