Created
June 4, 2020 16:03
-
-
Save SteveL-MSFT/63bd794eed3b7c2fac778b354c9fa13c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nal w write-host | |
$d='First','Second','Third','Fourth','Fifth','Sixth','Seventh','Eighth','Ninth','Tenth','Eleventh','Twelfth',"A Partridge in a Pear Tree.`n",'Two Turtle Doves, and','Three French Hens,','Four Calling Birds,','Five Gold Rings,','Six Geese-a-Laying,','Seven Swans-a-Swimming,','Eight Maids-a-Milking,','Nine Ladies Dancing,','Ten Lords-a-Leaping,','Eleven Pipers Piping,','Twelve Drummers Drumming,' | |
$l="On the % day of Christmas`nMy true love sent to me" | |
0..11|%{w $l.Replace("%",$d[$_]) | |
$_..0|%{w $d[$_+12]}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment