Skip to content

Instantly share code, notes, and snippets.

@hongsolo9
Created March 9, 2022 06:53
Show Gist options
  • Save hongsolo9/58777231dbeb7a3fba5969178843e5f2 to your computer and use it in GitHub Desktop.
Save hongsolo9/58777231dbeb7a3fba5969178843e5f2 to your computer and use it in GitHub Desktop.
/bin/tar: Argument list too long (from https://major.io/2007/07/05/bintar-argument-list-too-long/)
find . -name '*.txt' -print >/tmp/test.manifest
tar -cvzf textfiles.tar.gz --files-from /tmp/test.manifest
find . -name '*.txt' | xargs rm -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment