Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- googleurl2real:
- ------------------------------------------------------------------------
- #!/bin/sh
- # Convert Google's fuxnored URLs to the true URL
- sed 's/^.*\&url=//; s/\&.*//' | urlenc2ascii
- ------------------------------------------------------------------------
- urlenc2ascii
- ------------------------------------------------------------------------
- #!/usr/bin/awk -f
- # Print URL-encoded URL as ASCII
- {
- fields = split( $0, tokens, "%", seps )
- for ( i=1; i<=fields; i++ ) {
- recode = ""; recode2 = "";
- if ( i == 1 ) printf( tokens[i] )
- if ( i > 1 ) {
- recode = "0x" tolower(substr(tokens[i], 1, 2));
- recode2 = strtonum( recode );
- printf( "%c", recode2 )
- printf( substr( tokens[i], 3 ))
- }
- }
- printf( "\n" )
- }
- ------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment