mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-23 23:29:02 +01:00
Updated latlong.ps1
This commit is contained in:
parent
584f49d4fd
commit
d8351499d2
@ -11,6 +11,7 @@ The following PowerShell scripts can be found in the `Scripts/` subfolder:
|
||||
* [empty-dir.ps1](Scripts/empty-dir.ps1) - empties the given directory
|
||||
* [exe_info.ps1](Scripts/exe_info.ps1) - prints basic information of the given executable file
|
||||
* [init-git.ps1](Scripts/init-git.ps1) - initializes the Git configuration
|
||||
* [latlong.ps1](Scripts/latlong.ps1) - prints the lat/long coordinates of the given city
|
||||
* [list-empty-dirs.ps1](Scripts/list-empty-dirs.ps1) - lists empty subfolders in a directory tree
|
||||
* [list-unused-files.ps1](Scripts/list-unused-files.ps1) - lists unused files in a directory tree
|
||||
* [list-cmdlets.ps1](Scripts/list-cmdlets.ps1) - lists the PowerShell cmdlets
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/snap/bin/powershell
|
||||
|
||||
# Syntax: ./latlong.ps1 <city>
|
||||
# Description: prints the Lat/Long of the given city
|
||||
# Description: prints the lat/long coordinates of the given city
|
||||
# Author: Markus Fleschutz
|
||||
# Source: github.com/fleschutz/PowerShell
|
||||
# License: CC0
|
||||
@ -19,7 +19,7 @@ try {
|
||||
$Lat = $Row.lat
|
||||
$Long = $Row.lng
|
||||
$Population = $Row.population
|
||||
write-host "✔️ $City ($Country, $Region, $Population people) is at N$Lat° / W$Long°"
|
||||
write-host "✔️ $City ($Country, $Region, $Population people) is at $Lat°N, $Long°W"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user