From http://apple.stackexchange.com/help/on-topichttps://apple.stackexchange.com/help/on-topic:
We do encourage AppleScript, Automator, and UNIX shell scripting questions as well as how to use tools like Xcode for non-language specific tasks
So yes these kind of questions are absolutely on topic here.
Now, if the question is: Should we allow them in the future? Opinions may differ, but from my point of view it's often rather difficult to differentiate between scripting questions around specific OS X features (e.g. how can I list all connected USB devices) and questions which are generic enough to belong to another site (most probably Unix & Linux). Also, if the question does require a very detailed Unix knowhow not available on AD, we still can migrate it over if it doesn't get answered in due time. In other words: I don't see a pressing need to change the policy here.