Skip to content

Instantly share code, notes, and snippets.

@ssp
Created December 11, 2009 12:11
Show Gist options
  • Save ssp/254174 to your computer and use it in GitHub Desktop.
Save ssp/254174 to your computer and use it in GitHub Desktop.
scan typical binary folders for architecture types
#!/bin/sh
# Find our architechture information from binaries on the mac
find /Applications -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i > ~/Desktop/lipodata
find /Developer -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i >> ~/Desktop/lipodata
find /Library -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i >> ~/Desktop/lipodata
find /System -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i >> ~/Desktop/lipodata
find /private -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i >> ~/Desktop/lipodata
find /bin -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i >> ~/Desktop/lipodata
find /sbin -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i >> ~/Desktop/lipodata
find /usr -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i >> ~/Desktop/lipodata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment