Skip to content

Instantly share code, notes, and snippets.

@LightningStalker
Created February 22, 2026 11:34
Show Gist options
  • Select an option

  • Save LightningStalker/31d13a706de628602f02d6011639742e to your computer and use it in GitHub Desktop.

Select an option

Save LightningStalker/31d13a706de628602f02d6011639742e to your computer and use it in GitHub Desktop.
Strip all binary programs in current directory
# 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