• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Adding a leading zero
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding a leading zero


  • Subject: Adding a leading zero
  • From: <email@hidden>
  • Date: Wed, 4 Apr 2007 21:24:09 +0200
  • Thread-topic: Adding a leading zero

Hi all,

I am using this line to extract the modification date of a file

ls -lT /Users/gunno/Library/Preferences/Flexklockan.plist | awk '{print $6 $7 $9}'

The result is Apr42007

How can I add a leading zero to the day digit?
Or is there another and better way to get the modiicaion date?
(Don't want to use /Developer/Tools/GetFileInfo)

Thanks in advance
Gunno I
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Adding a leading zero
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Fwd: finding group name in addressbook
  • Next by Date: Re: Adding a leading zero
  • Previous by thread: Fwd: finding group name in addressbook
  • Next by thread: Re: Adding a leading zero
  • Index(es):
    • Date
    • Thread