getshows/getviaphone

8 lines
118 B
Bash

#!/bin/sh
# Download a file via the phone.
u=$1
f=${u%%\?*}
f=${f##*/}
ssh phone "cd downloads/tmp;wget -O- $u" > $f