Поделиться через


powershell one-liner to expose some emoticons

While chatting with a co-worker about a bug I had fixed a few weeks back, Communicator unexpectedly (to me) translated (I) into an emoticon for me (I know, I can turn emoticons off).

So, time for a quickie one-liner and then paste the resulting text into the IM window to see what the alphabet emoticons are:

image

Note that it's a little annoying (again, to me) that I can't do char ranges (at least with V1) that I can do with something like perl (and many other languages)

# perl -le "print 'A'..'Z'"
ABCDEFGHIJKLMNOPQRSTUVWXYZ

# 'A'..'Z' | %{ '( {0} ) == ({0})' -f $_ }
Cannot convert value "A" to type "System.Int32". Error: "Input string was not in a correct format."
At line:1 char:6
+ 'A'..' <<<< Z' | %{ '( {0} ) == ({0})' -f $_ }