#! /bin/sh # Carlos Duarte , 980722/990607 # diff between d, and D sed commands for i in d D; do case $i in d) echo "running with command 'd' (no output)" ;; D) echo "running with command 'D' (only 2nd line)" ;; esac cat<