Skip to content

Instantly share code, notes, and snippets.

View organom's full-sized avatar
👨‍💻
Fixing the world, one issue at a time

Ricardo Gomes organom

👨‍💻
Fixing the world, one issue at a time
View GitHub Profile
@chabala
chabala / using-google-takeout.md
Last active July 13, 2024 14:44
Merge and extract tgz files from Google Takeout

Recently found some clowny gist was the top result for 'google takeout multiple tgz', where it was using two bash scripts to extract all the tgz files and then merge them together. Don't do that. Use brace expansion, cat the TGZs, and extract:

$ cat takeout-20201023T123551Z-{001..011}.tgz | tar xzivf -

You don't even need to use brace expansion. Globbing will order the files numerically:

$ cat takeout-20201023T123551Z-*.tgz | tar xzivf -