# get username (cut off https://www.deviantart.com/ from front) username=${url##*deviantart.com/} # cut off any extra stuff from end username=${username%%/*} if [[ -n $username ]] then rss="https://backend.deviantart.com/rss.xml?type=deviation&q=by%3A${username}+sort%3Atime+meta%3Aall" url_ext=$rss fi