• 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
posting terminal output to the list (was Re: do shell script date with last month's date)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

posting terminal output to the list (was Re: do shell script date with last month's date)


  • Subject: posting terminal output to the list (was Re: do shell script date with last month's date)
  • From: 2551 <email@hidden>
  • Date: Sat, 15 Feb 2014 11:43:23 +0700


I know this question is already solved, here is just another way using the GNU version of date.  It lets someone use more of a human language way of specifying the date.  E.g. "-10 minutes", "+2 days" etc.

/usr/local/Cellar/coreutils/8.21/bin/gdate -d 'last month' +"%B %Y"
January 2014



Perhaps of interest when posting terminal content to the list: there was a discussion the other day on ASC about pasting from Terminal without keeping the background formatting. This does the trick

defaults write com.apple.Terminal CopyAttributesProfile com.apple.Terminal.no-attributes

This undoes it:

defaults write com.apple.Terminal CopyAttributesProfile com.apple.Terminal.attributes

No log out or quit required in either case. 


Best

Phil
 _______________________________________________
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

References: 
 >Re: do shell script date with last month's date (From: Bryan Harris <email@hidden>)

  • Prev by Date: Re: Upgrading to Mavericks - is it likely to break EVERYTHING!?
  • Next by Date: Re: Upgrading to Mavericks - is it likely to break EVERYTHING!?
  • Previous by thread: Re: Re(2): do shell script date with last month's date
  • Next by thread: Re: do shell script date with last month's date
  • Index(es):
    • Date
    • Thread