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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -