shell - Process tab delimited file and save each column as variable -
i have tab delimited feadlist
has 2 columns (date
+ id
):
20130509 1319 20130510 1320 20130511 1321 20130512 1322 20130513 1323
while reading each line, want curl data web link using id
save file date
file name. have like:
for feed in $feadlist awk -f "\t" '{print date=$1, seq=$2}' $feed curl "$weblink/$seq/data" > $date done
but apparently doesn't work. guys shed light on this? thanks!
a different way be
while read date seq curl "$weblink/$seq/data" > $date done < feadlist
Comments
Post a Comment