rpurldl - rohrpost - A commandline mail client to change the world as we see it.
(HTM) git clone git://r-36.net/rohrpost
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
rpurldl (238B)
---
1 #!/bin/sh
2
3 if [ -z "$DOWNLOADER" ];
4 then
5 printf "You need to set \$DOWNLOADER for downloading the URL."
6 exit 1
7 fi
8
9 url=$(rpview "$@" | awk '/URL:/ {print $2}' | tr -d '\r')
10 for i in $url
11 do
12 printf "%s\n" "${i}"
13 $DOWNLOADER "$i"
14 done
15