diff options
author | Michael Homer <mwh@mwh.geek.nz> | 2014-08-15 18:56:25 +1200 |
---|---|---|
committer | Michael Homer <mwh@mwh.geek.nz> | 2014-08-15 18:58:36 +1200 |
commit | a49d775dd9d43bd22cee4c1fd3e32ede0dc2e9c2 (patch) | |
tree | 89f9da73fea2955843019af497f89efbc54c5fa3 /example/download.sh | |
parent | Set stdout to line buffered for scripting -t (diff) | |
download | dragon-a49d775dd9d43bd22cee4c1fd3e32ede0dc2e9c2.tar.gz dragon-a49d775dd9d43bd22cee4c1fd3e32ede0dc2e9c2.tar.bz2 dragon-a49d775dd9d43bd22cee4c1fd3e32ede0dc2e9c2.zip |
Add simple --target example
The example downloads any URLs dragged onto the target using wget.
Diffstat (limited to 'example/download.sh')
-rwxr-xr-x | example/download.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/example/download.sh b/example/download.sh new file mode 100755 index 0000000..4698d38 --- /dev/null +++ b/example/download.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# This toy example uses wget and the --target mode to act +# as a drag-and-drop download tool. + +../dragon --target | while read url +do + wget "$url" +done |