Last active
July 1, 2018 17:23
-
-
Save mclavel/92b2d661bbf1124e96c071e97a0c8f9a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/sh | |
COMUNA='Santiago' | |
CALLE='Andres Bello' | |
NUMERO='2425' | |
curl -sG 'http://codigopostal.correos.cl:5004/' \ | |
--data-urlencode 'calle='"$CALLE" \ | |
--data-urlencode 'comuna='"$COMUNA" \ | |
--data-urlencode 'numero='"$NUMERO" \ | |
| grep 'tu_codigo' -A2 | cut -d'<' -f1 | tr -d '[:space:]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment