Comment

John B. Cole

Thanks! I needed a quick way to do this in bash and your code works like a charm.