News for hackers. Stuff that matters.
Re:Bringing the best of Bash scripting to Ruby by vodik on Monday July 13, 2015 @05:17PM (#9881165)
Ironically, if the given example was written in pure bash, it would be violating best practices. You don't parse ls line-by-line because you can't make the assumption that filenames will map to lines.

Taking this contrived example at face value, imho, I'd instead place the "best of bash" for the particular task with file globbing.

There are no comments on this comment yet.