Skip to main content
added 1 character in body
Source Link
David Todd
  • 47
  • 1
  • 1
  • 7
while IFS= read -r line; do # this below line isn't working cat temp.txt | sed 's/clientId:[^ ]*clientId]*/clientId:$line/' # and how should I use new json to post curl done < clientIds.txt 
while IFS= read -r line; do # this below line isn't working cat temp.txt | sed 's/clientId:[^ ]*clientId:$line/' # and how should I use new json to post curl done < clientIds.txt 
while IFS= read -r line; do # this below line isn't working cat temp.txt | sed 's/clientId:[^ ]*/clientId:$line/' # and how should I use new json to post curl done < clientIds.txt 
added 319 characters in body
Source Link
David Todd
  • 47
  • 1
  • 1
  • 7

Update

I tried something like this in my bash script but I cannot make it work as I am confuse on few things. How can I replace my template json file for each clientId and then post that json to the server using curl -

while IFS= read -r line; do # this below line isn't working cat temp.txt | sed 's/clientId:[^ ]*clientId:$line/' # and how should I use new json to post curl done < clientIds.txt 

Update

I tried something like this in my bash script but I cannot make it work as I am confuse on few things. How can I replace my template json file for each clientId and then post that json to the server using curl -

while IFS= read -r line; do # this below line isn't working cat temp.txt | sed 's/clientId:[^ ]*clientId:$line/' # and how should I use new json to post curl done < clientIds.txt 
added 2 characters in body
Source Link
David Todd
  • 47
  • 1
  • 1
  • 7
deleted 2 characters in body
Source Link
David Todd
  • 47
  • 1
  • 1
  • 7
Loading
deleted 1 character in body
Source Link
David Todd
  • 47
  • 1
  • 1
  • 7
Loading
Source Link
David Todd
  • 47
  • 1
  • 1
  • 7
Loading