[Wolves] Rewriting bash scripts in a 'proper' language
Simon Burke
simonb at fatsportsman.eu
Wed Oct 1 13:57:48 UTC 2014
So I spent most of this morning writing a script in Bash to automate a
regular task. However as it requires user input for some fields and I've
set up basic validation for said fields, it started to get out of hand. As
its now getting horrendously long, found out things like how Bash handles
functions and Bashs limitations with regex (i.e. doesnt support
lookarounds).
Considering this and the fact that it's likely to grow as I want to be able
to scale it in multiple directions. I thought it would be a good time to
brush up on my language skills. Seeing that I've not really used a language
properly for about a year or so, even longer the last time I've used it in
anger.
So whats a nice language these days? considering that I only really know
basic python, perl and ruby. Is Go worth looking at? The guys here keep
suggesting php, but lets not get into the merits of php developers. :P
How easy would it be to rewrite a large bash script into whatever language?
Please don't mention the likes of brainfuck, java, cobol et al. :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/wolves/attachments/20141001/e20468ee/attachment.html>
More information about the Wolves
mailing list