posting terminal output to the list (was Re: do shell script date with last month's date)
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
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