#!/bin/sh for f in "$@"; do if [ -e "$f" ]; then xdg-open "$f" else echo "Skipping $f" > /dev/stderr fi done