diff options
author | epoch <epoch@thebackupbox.net> | 2022-08-19 05:58:46 +0000 |
---|---|---|
committer | epoch <epoch@thebackupbox.net> | 2022-08-19 05:58:46 +0000 |
commit | afedc7a0fb30d6c4e5d01793b2a0d25f6d562666 (patch) | |
tree | 02493806ccc8f7922e499f32315a84ae7bfc88fc /urititle | |
parent | e5a205847adc8107cf4ffc2584128f101d061e8f (diff) | |
download | uritools-afedc7a0fb30d6c4e5d01793b2a0d25f6d562666.tar.gz uritools-afedc7a0fb30d6c4e5d01793b2a0d25f6d562666.zip |
fix a trailing space on dns titles
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 |