Lehetne úgy is, hogy minden &-et &-ra, majd minden backslash space-t -re. tr '[:lower:]' '[:upper:]' <<<locsemege LOCSEMEGE