try this shit

This commit is contained in:
Osman Faruk Bayram 2025-05-16 21:16:29 +03:00
parent 138bc8ef6c
commit 570b41e50b

View file

@ -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..."