Skip to content

Instantly share code, notes, and snippets.

@james2doyle
Created January 19, 2024 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save james2doyle/4c66257f6bf681209977e5a3b3ee78c8 to your computer and use it in GitHub Desktop.
Save james2doyle/4c66257f6bf681209977e5a3b3ee78c8 to your computer and use it in GitHub Desktop.
Split a file into lines and run a command for each one. This example is run on cURL
awk '{printf("%s\0", $1)}' list.txt | xargs -0 -n 1 curl -I
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment