How to loop a wget command in bash shell with URL parameters from a file.
File is space delimited :
$ cat parameters.txt
ANLA 830093 37227 2018/12/23 C14111
ANLA 2647724 106308 2018/12/23 C301205
BEDER 2638573 94596 2018/12/12 INDISP
.....
URL resquests use get method so I would like to to set parameters from a line and build URLs with them.
$ for i in (cat parameters.txt); .. ? setting $p1,$p2,$p3,$p4 ? .. ;wget -qO- "http://example.com/planning.dll?Id=$p1&Prest=$p2&Time=$p3&Date=$p4" | ..processings ... >>output.txt; done
Parameter expansions ${....} should be the clue but how ? Or other answer ?
I'd like a way like cut -d " " -f "colomn" file command for variables.