Created
July 7, 2015 13:15
-
-
Save ifthenelse/066a12e0458535ca0aab to your computer and use it in GitHub Desktop.
List of shell snippets
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
# Assuming the existence of a list of url, in a text file, get the file size of each url target (in Kb) | |
cat urls.txt | xargs -n 1 curl -sI | grep Content-Length | awk '{print $2/1000}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment