Suppose I want to do something with a file that contains the current date. At a bash prompt I could just do this:
$ touch /Foo/$(date +%Y-%m-%d)
How could I do that in a LaunchAgents plist, where I don't have $()
available?
<key>ProgramArguments</key>
<array>
<string>touch</string>
<string>/Foo/CURRENT-DATE-HERE</string>
</array>