viet viet - 5 months ago 14
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 )

Answer

based on this and this

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