Joined July 2012
·

Pure Krome

World Domination, one tiny byte at a time.
·
Melbourne, Australia
·
·

Nice pickup! Fixed :) :blush:

Hi Ismaell :)

thanks for your comment - that single line might make it look a lot nicer. But, reducing a few lines to a single line doesn't always mean 'better' code. Secondly, to (poorly) quote Jamie Zawinski "Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems."

But yes, this can be seen as a trivial piece of code and Unix can shine when it comes to sed/awk/gawk etc.

I'm just not sure that I would say "PowerShell is really crappier" because I've decided to use a 2x for-eaches. I could also do something similar in Unix or on another CLI.

But you point is taken :) Ta!

Achievements
658 Karma
74,279 Total ProTip Views