Sudden Death Challenge: Event 2
$vertical = @(cat C:\Scripts\vertical.txt) $text="" for($i=0; $i -le 3; $i++){ 0..($vertical.length-1) | foreach { $text+=$vertical[$_][$i] } } $text
# result
The 2008 Winter Scripting Games!
If you repeat it [$CRIPT] it!
$vertical = @(cat C:\Scripts\vertical.txt) $text="" for($i=0; $i -le 3; $i++){ 0..($vertical.length-1) | foreach { $text+=$vertical[$_][$i] } } $text
# result
The 2008 Winter Scripting Games!
Posted by Shay Levy at 2/28/2008 12:15:00 PM
Labels: PowerShell, Scripting Games 2008
No comments:
Post a Comment