Advertisement
bash-masters

urlencode

Dec 10th, 2012
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # if you don't have xtr, get it: http://pastebin.com/67H6Us9V
  4. # its fast, its small, its portable, its easy, its free
  5. # but most of all its indispensable.
  6.  
  7. # urlencode (HTML5 Compliant) standard input
  8.  
  9. xtr -p % +e "[0-9a-zA-Z]*-_." "s/ /+";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement