<div dir="ltr">Hi Simon<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 1, 2014 at 2:57 PM, Simon Burke <span dir="ltr"><<a href="mailto:simonb@fatsportsman.eu" target="_blank">simonb@fatsportsman.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>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).<br><br></div><div>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.<br><br></div><div>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<br><br></div><div>How easy would it be to rewrite a large bash script into whatever language?  <br></div></div></blockquote><div><br></div><div>If your automating provisioning / deployment, then it is probably worth looking at specific provisioning tools. <br></div><div>Often these tool have built in helpers for doing what takes many lines of bash.  Ansible would be one to <br>look at, it operates over SSH and requires very few deps on the target machines.<br><br></div><div>Otherwise, I've tended to favour using Perl, as I've been using that for a while and I can't get past the lack <br>of braces in Python.<br><br></div><div>Chris<br></div></div></div></div></div>