#!/bin/sh ls -- *.txt |\ while read i do echo "$i ..." done