#!/bin/bash # converts HTML string to text [[ -z $1 ]] && what string to convert? && exit 1 printf "${1//%/\\x}" # https://unix.stackexchange.com/questions/233321/how-to-convert-an-special-hex-character-from-an-html-page-in-bash