Linux words by idealmachine(not cheating)

read w
[ $w ]||exit
w=`tr LINUX linux<<<$w`
l=${w:0:2}
l=${l#l}
m=${w:2:$((${#w}-4))}
r=${w:(-2)}
r=${r%x}
p=${l%i}${m//n/}${r#u}
echo $((${#w}<5?-1:${#p}))
. *

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page