Skip to content

Instantly share code, notes, and snippets.

@AlexRogalskiy
Created February 27, 2022 12:26
Show Gist options
  • Select an option

  • Save AlexRogalskiy/37159ac7d34304e4e124a5afb2f4c68f to your computer and use it in GitHub Desktop.

Select an option

Save AlexRogalskiy/37159ac7d34304e4e124a5afb2f4c68f to your computer and use it in GitHub Desktop.
If you ever happen to extract tz tarballs without a directory (LOL), this will help you clean up the directory.
find . -type f `find tz?(32|64){code,data}*\.tar\.{gz,Z} | xargs -I% echo "-name % -prune -o"` -type f -name '*' -exec \rm -i {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment