Created
December 4, 2015 20:20
-
-
Save ElijahLynn/0ac462870ea703cc77a5 to your computer and use it in GitHub Desktop.
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
# Fish while loop example | |
# This was to come up with how many URLs I could fit in the 50KB max purge request to Akamai for invalidation purges. | |
while test (du -b /tmp/ak | awk '{print $1}') -lt 50001 | |
echo (du -b /tmp/ak | awk '{print $1}') bytes | |
echo "https://community.akamai.com/thread/2706" >> /tmp/ak; echo (wc -l /tmp/ak | awk '{print $1}' ) lines | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment