This commit is contained in:
Rob Pearce 2024-06-30 09:43:42 +10:00
parent 2825e35152
commit 383d21ebf1
1 changed files with 2 additions and 2 deletions

View File

@ -84,9 +84,9 @@ function getcontent() { # 1=url 2=outputfile
local outfile="$2"
if [[ -n $LYNX ]]; then
curl -sL "$url" | ${LYNX} -stdin -dump > "${out}"
curl -sL "$url" | ${LYNX} -stdin -dump > "${outfile}"
else
curl -sL "$url" | ${SED} 's/>/>\n/g;s/</\n</g;' | awk NF | egrep -v "^<.*>$" > "${out}"
curl -sL "$url" | ${SED} 's/>/>\n/g;s/</\n</g;' | awk NF | egrep -v "^<.*>$" > "${outfile}"
fi
}