Skip to content

Instantly share code, notes, and snippets.

@ElijahLynn
Created December 4, 2015 20:20
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 ElijahLynn/0ac462870ea703cc77a5 to your computer and use it in GitHub Desktop.
Save ElijahLynn/0ac462870ea703cc77a5 to your computer and use it in GitHub Desktop.
# 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