Advertisement
mbazs

Gyogy mentes

Feb 5th, 2016
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. #!/bin/bash
  2. URL='http://www.ogyei.gov.hu'
  3. URL2='gyogyszeradatbazis'
  4. REG_NUMBER=$1
  5. rm ah_* >/dev/null 2>&1
  6. wget -qO- "$URL/$URL2/index.php?action=process&registration_number=$REG_NUMBER" | tr -d '\r' | grep show_details | sed 's/.*href="\([^"]*\).*/\1/g' | xargs -n1 echo "$URL" | tr -d " " | xargs -n1 wget -qO- |grep ah_ | sed 's/.*href="\([^"]*\).*/\1/g' | xargs -n1 -I$ bash -c 'echo Letoltes: $ ...; wget -q $'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement