Created
January 19, 2024 17:37
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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