#!/bin/sh ## ## ns - shell script to get netscape to open a local file ## case $1 in /*) file=$1 ;; *) file=`pwd`/$1 ;; esac if netscape -remote "openURLNewWindow(file://$file)" then echo new window opened else netscape "file://$file" & echo browser/editor started fi