Skip to content

Instantly share code, notes, and snippets.

@mhmdiaa
Created April 30, 2024 21:09

Revisions

  1. mhmdiaa created this gist Apr 30, 2024.
    3 changes: 3 additions & 0 deletions httpx-cp-responses.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    cat urls.txt | httpx -json -store-response -output httpx.json

    cat httpx.json | jq -r '"\(.stored_response_path) \(.path | ltrimstr("/"))"' | xargs -n 2 sh -c 'mkdir -p "$(dirname $2)" && cp $1 $2' sh