Add to Technorati Favorites
Welcome to ThePowerShellGuy.com Sign in | Join | Help

Scripting Games 2008 Advanced Windows PowerShell Event 9

My solution for event 9 :

 (gc c:\scripts\alice.txt |% {$_.split()}|% {$_[-1..(-$_.length)]-join ''})-join ' '

Enjoy,

Greetings /\/\o\/\/

Published Monday, March 03, 2008 1:35 PM by MoW

Comments

# re: Scripting Games 2008 Advanced Windows PowerShell Event 9

Wow, that is disgustingly small (in a good way). My solution (posted on my blog) does the same thing, but takes 322 characters to do the same thing. Gah, that's almost embarrassing now. -Peter

Wednesday, March 05, 2008 3:02 PM by Peter

# Scripting Games: Advanced PowerShell - Event 9 « PowerShell ?? ???????????? ??????????????

Anonymous comments are disabled