logo
  • 教程列表
  • SO官方文檔
  • 解碼網址
    • 簡單的例子
    • 使用 printf 解碼字串
  1. StackOverflow 文件
  2. Bash 教程
  3. 解碼網址
  4. 簡單的例子

簡單的例子

Created: November-22, 2018

編碼的 URL

HTTP%3A%2F%2Fwww.foo.com%2Findex.php%3Fid%3Dqwerty

使用此命令解碼 URL

echo "http%3A%2F%2Fwww.foo.com%2Findex.php%3Fid%3Dqwerty" | sed -e "s/%\([0-9A-F][0-9A-F]\)/\\\\\x\1/g" | xargs -0 echo -e

解碼的 URL(命令結果)

http://www.foo.com/index.php?id=qwerty

  • 使用 printf 解碼字串
  • 解碼網址

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明