viet viet - 1 year ago 73
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 Source

based on this and this

echo "Lê Thành Việt" | iconv -f UTF-8 -t ascii//TRANSLIT  | tr ' ' '.' | tr '[:upper:]' '[:lower:]'
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download