diff options
author | epoch <epoch@thebackupbox.net> | 2022-08-19 02:11:44 -0500 |
---|---|---|
committer | epoch <epoch@thebackupbox.net> | 2022-08-19 02:11:44 -0500 |
commit | d06b4b973c3cbd7984fbacc6eda47a9d22de92f0 (patch) | |
tree | 61e91a71a31ad9dabcad7fef6864624bec654791 /urititle | |
parent | 511ebda349763dbdbaeb64fea5732e7953726bd3 (diff) | |
parent | afedc7a0fb30d6c4e5d01793b2a0d25f6d562666 (diff) | |
download | uritools-d06b4b973c3cbd7984fbacc6eda47a9d22de92f0.tar.gz uritools-d06b4b973c3cbd7984fbacc6eda47a9d22de92f0.zip |
Merge branch 'master' of ssh://git.thebackupbox.net/uritools
Diffstat (limited to 'urititle')
-rwxr-xr-x | urititle | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -56,7 +56,7 @@ http*) printf "title: %s\n" "$title" | html_entities_decode fi else - printf "%s\n" "${a_header}" + p rintf "%s\n" "${a_header}" fi fi ;; @@ -102,8 +102,7 @@ dns) else server="" fi - dig $class $type "$path" +short $server | tr '\n' ' ' - echo # the tr above strips out the trailing \n + dig $class $type "$path" +short $server | tr '\n' ' ' | sed 's/ $/\n/' ;; ftp) curl -g "$uri" 2>&1 | tail -n1 |