#!/bin/zsh whole_file="`cat $1`" file=(${(f)"${whole_file}"}) for f in $file; do print "http://test/$f" done ###################### data file: 132414+12414+14135153+1414141+13512512 12313.24+2342352.0+2309820+023840+809