Skip to content

Instantly share code, notes, and snippets.

@giseongeom
Created March 14, 2017 03:01
Show Gist options
  • Select an option

  • Save giseongeom/e82fdbd0eef1b404bf7a7f2453b9af1f to your computer and use it in GitHub Desktop.

Select an option

Save giseongeom/e82fdbd0eef1b404bf7a7f2453b9af1f to your computer and use it in GitHub Desktop.
List alphabet + number as single string
$a=''
$b=''
[char[]]([char]'a'..[char]'z') | % { [string]$a+=$_ } ; $a
0..9 | % { [string]$b+=$_ } ; $b
$a + $b
@giseongeom
Copy link
Copy Markdown
Author

output

[char[]]([char]'a'..[char]'z') | % { [string]$a+=$_ } ; $a 
0..9 | % { [string]$b+=$_ } ; $b
$a + $b 


abcdefghijklmnopqrstuvwxyz
0123456789
abcdefghijklmnopqrstuvwxyz0123456789

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment