#!/bin/sh if [ $# -ne 1 -o ! -f "$1" ]; then echo "usage: bq2 filename" >& 2 exit 1 fi for i in `cat "$1"` ; do echo $i done