#!/bin/bash FITS=./fits ASTR=./astrom cat base.list | \ while read base dummy ; do fistar $FITS/$base.fits \ --flux-threshold 50000 --model elliptic \ --format id,x,y,s,d,k,flux,mag \ --output $ASTR/$base.stars echo "$base: done." >> /dev/stderr done