Shell

How to compare variables length?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

if [ ${#1} -ne ${#2} ]; then
    ...