Loading ...
Sorry, an error occurred while loading the content.
 

Re: [hackers-il] Google pagerank hack

Expand Messages
  • Nadav Har'El
    ... Looking again at my script, I m a bit embarrassed - why use sed -n and p ? Stupid me. Here s the modified script, a few characters shorter :) curl -e $1
    Message 1 of 3 , Sep 6, 2004
      On Mon, Sep 06, 2004, Arik Baratz wrote about "Re: [hackers-il] Google pagerank hack":
      > On Mon, 6 Sep 2004 15:33:22 +0300, Nadav Har'El <nyh@...> wrote:
      >
      > > So here's a tiny 2 line script that does it:
      > >
      > > curl -e $1 -i http://my.rank.online.fr/pagerank.php 2>/dev/null |
      > > grep "^Location: " | sed -n 's/^Location: pr\(.*\).gif/\1/; p'

      Looking again at my script, I'm a bit embarrassed - why use "sed -n" and "p"?
      Stupid me. Here's the modified script, a few characters shorter :)

      curl -e $1 -i http://my.rank.online.fr/pagerank.php 2>/dev/null |
      grep "^Location: " | sed 's/^Location: pr\(.*\).gif/\1/'


      --
      Nadav Har'El | Monday, Sep 6 2004, 20 Elul 5764
      nyh@... |-----------------------------------------
      Phone +972-523-790466, ICQ 13349191 |ech`echo xiun|tr nu oc|sed
      http://nadav.harel.org.il |'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
    Your message has been successfully submitted and would be delivered to recipients shortly.