viet viet - 9 months ago 28
Linux Question

How to create username from full name without diacritic in linux

which command in linux can convert my name into username like:

name :Lê Thành Việt

--> convert to: le.thanh.viet ( not lê.thành.việt )


based on this and this

echo "Lê Thành Việt" | iconv -f UTF-8 -t ascii//TRANSLIT  | tr ' ' '.' | tr '[:upper:]' '[:lower:]'