blob: b9cc7c9c327c4bee7ed1228708142d280dd1f263 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
while getopts f: opt; do
case $opt in
f) OPENER_ARGS="-f $OPTARG";;
\?) echo "Usage: $0 [-f view] url" >&2; exit 1;;
esac
done
shift `expr $OPTIND - 1`
phttp $@ | xargs opener $OPENER_ARGS
|