fulldecent / corelocationcli

Command line program to print location information from CoreLocation
MIT License
217 stars 29 forks source link

[BUG] newline not working in -format output (v3.1.0) #24

Closed JayBrown closed 4 years ago

JayBrown commented 5 years ago

CoreLocationCLI -format "%latitude %longitude\n%address" doesn't add a newline after the longitude.

fulldecent commented 4 years ago

Please see https://stackoverflow.com/questions/3005963/how-can-i-have-a-newline-in-a-string-in-sh

This can be handled as follows:

CoreLocationCLI -format $'%latitude %longitude\n%address'