Updated latlong.ps1

This commit is contained in:
Markus Fleschutz 2020-11-01 11:20:55 +00:00
parent 584f49d4fd
commit d8351499d2
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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"
}
}