getsilego 272 B

12345
  1. #!/bin/sh
  2. #get the URLof the pdf datasheet for a silego product, input searchstring as parameter, return URL via stdout
  3. #v1.01 JR
  4. echo -n $(wget -q http://www.silego.com/softdoc/datasheet.html?filterPN=${1} -O -|sed -n "s%.*href\=\"\([^ ]*${1}[^ ]*pdf\)\".*%\1%;T;p;q" )