27

Filip W wrote about using Swift as a general purpose scripting language:

The obvious advantage of such approach is that you now have the same single language to handle iOS programming, OS X app programming and generic system/automation tasks that you might want to perform from the command line.

Read more on strathweb.com