eloone/mergejs — pull request #2 by kmitrovic (2014-01-30 16:04:50+00:00)
Title: New way of extracting first character

For some reason, ${file:0:1} didn't work for me.

After reading accepted answer on http://stackoverflow.com/questions/10218474/how-to-obtain-the-first-letter-in-a-bash-variable
I tried with that (

$(echo $file | head -c 1)

), and it works fine.

Also, not needed trailing whitespace is removed.