Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted by te0z ( 14 years ago )
set -n %temp $1-

  if (http isin %temp) {
    inc %x 
    while ( $matchtok(%temp,www,%x,32) ) { 
      echo -a  $matchtok(%temp,www,%x,32)
      ;set -n %temp $replace(%temp,$matchtok(%temp,www,%x,32),$tinyurl($matchtok(%temp,www,%x,32)) ) 
      inc %x
    }
  }

  if (www isin %temp) {
    inc %z
    while ( $matchtok(%temp,http,%z,32) ) { 
      echo -a $matchtok(%temp,http,%z,32)
      ;set -n %temp $replace(%temp,$matchtok(%temp,www,%z,32),$tinyurl($matchtok(%temp,www,%z,32)) 
      inc %z
    }

  }

 

Revise this Paste

Children: 44026
Your Name: Code Language: