[Wolves] Rewriting bash scripts in a 'proper' language

Dave Morley davmor2 at davmor2.co.uk
Wed Oct 1 14:07:13 UTC 2014


On Wed, 1 Oct 2014 14:57:34 +0100
Simon Burke <simonb at fatsportsman.eu> wrote:

> 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. :)

python is really quick to do stuff in and the more you use it the
quicker it is.

-- 
You Make It, I'll Break It!

I Love My Job :)

http://www.canonical.com
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/wolves/attachments/20141001/a5965139/attachment.pgp>


More information about the Wolves mailing list