Overlay for the gsview and some other plotting/scientific soft
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh |
|
|
|
if [ -z "$1" ] |
|
then |
|
echo "Usage: $0 URL [TAG]" |
|
echo " URL: The URL to open" |
|
echo " TAG: The anchor at that url" |
|
exit 1 |
|
fi |
|
|
|
if [ -z "$2" ] |
|
then |
|
TAG='' |
|
else |
|
TAG="#$2" |
|
fi |
|
|
|
if firefox -remote openFile\(file://$1$TAG\) ; then |
|
exit 0 |
|
else |
|
firefox file://$1$TAG |
|
fi |
|
exit 0
|
|
|