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