Created
February 22, 2026 11:34
-
-
Save LightningStalker/31d13a706de628602f02d6011639742e to your computer and use it in GitHub Desktop.
Strip all binary programs in current directory
This file contains hidden or 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
| # Strip all the executable files in current directory that don't have | |
| # '.' character in the name. | |
| echo -n "stripall.sh: Number of programs to strip: " | |
| find -maxdepth 1 -executable \! -name '*.*' | wc -l | |
| echo Stripping... | |
| find -maxdepth 1 -executable \! -name '*.*' -print0 | xargs -0 strip -s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment