Skip to content

Instantly share code, notes, and snippets.

@Believe-AS
Forked from mskf3000/httpx-cp-responses.sh
Created November 8, 2025 08:34
Show Gist options
  • Select an option

  • Save Believe-AS/e277d3cddb1ef11030a8e9aaa5c8961f to your computer and use it in GitHub Desktop.

Select an option

Save Believe-AS/e277d3cddb1ef11030a8e9aaa5c8961f to your computer and use it in GitHub Desktop.
Copy responses from httpx's output to their original file names
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment