try this shit
This commit is contained in:
parent
138bc8ef6c
commit
570b41e50b
1 changed files with 3 additions and 3 deletions
|
|
@ -24,11 +24,11 @@ fetch_and_merge() {
|
|||
-o "$resp_file"
|
||||
|
||||
echo -e "\n--- Page $((counter + 1)) (First 20 lines) ---"
|
||||
# head -n 20 <(jq . "$resp_file")
|
||||
jq . "$resp_file" 2>/dev/null | head -n 20
|
||||
head -n 20 <(jq . "$resp_file")
|
||||
# jq . "$resp_file" 2>/dev/null | head -n 20
|
||||
|
||||
next_url=$(jq -r '.pages.next_url // empty' "$resp_file")
|
||||
((counter++))
|
||||
counter=$((counter + 1))
|
||||
done
|
||||
|
||||
echo "Merging data..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue