#!/bin/sh if [ $# -ge 2 ] then cat=".$1" shift fi if [ $# -ge 1 ] then xdg-open "https://man.archlinux.org/search?q=$@$cat&go=Go" else echo "man what?" fi