#!/bin/sh type=wtype while read -r word; do test "${word#?}" && $type "${word#?}" done