1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/usr/bin/env bash # Delete first 23 characters request=${1:23} # Decode URL request=$(echo $request | echo -e "$(sed 's/+/ /g; s/%/\\x/g')") # Replace &line= with : request=${request/&line=/:} # Replace &column= with : request=${request/&column=/:} # Launch Sublime subl3 $request