Skip to content

Instantly share code, notes, and snippets.

@jansanchez
Last active August 1, 2017 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jansanchez/f2c71a8e44cb1da5ab286daad8b085a9 to your computer and use it in GitHub Desktop.
Save jansanchez/f2c71a8e44cb1da5ab286daad8b085a9 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
TEXTO_INICIAL=$(curl -s "http://webapp.calidda.com.pe/webdev/controladores/formulario.aspx?id=$1")
TEXTO_FINAL=${TEXTO_INICIAL:325}
echo ${TEXTO_FINAL:0:20}
# calidda.sh 50841
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment