view raw
viet viet - 11 months ago 33
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:]'