Created
December 21, 2013 18:00
-
-
Save skydrome/8072667 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env bash | |
# array=$(pacman -Ql coreutils \ | |
# |grep '/usr/bin' \ | |
# |cut -f2 -d' ' \ | |
# |tail -n +3) | |
array=( | |
/usr/bin/base64 | |
/usr/bin/basename | |
/usr/bin/cat | |
/usr/bin/chcon | |
/usr/bin/chgrp | |
/usr/bin/chmod | |
/usr/bin/chown | |
/usr/bin/chroot | |
/usr/bin/cksum | |
/usr/bin/comm | |
/usr/bin/cp | |
/usr/bin/csplit | |
/usr/bin/cut | |
/usr/bin/date | |
/usr/bin/dd | |
/usr/bin/df | |
/usr/bin/dir | |
/usr/bin/dircolors | |
/usr/bin/dirname | |
/usr/bin/du | |
/usr/bin/echo | |
/usr/bin/env | |
/usr/bin/expand | |
/usr/bin/expr | |
/usr/bin/factor | |
/usr/bin/false | |
/usr/bin/fmt | |
/usr/bin/fold | |
/usr/bin/head | |
/usr/bin/hostid | |
/usr/bin/id | |
/usr/bin/install | |
/usr/bin/join | |
/usr/bin/link | |
/usr/bin/ln | |
/usr/bin/logname | |
/usr/bin/ls | |
/usr/bin/md5sum | |
/usr/bin/mkdir | |
/usr/bin/mkfifo | |
/usr/bin/mknod | |
/usr/bin/mktemp | |
/usr/bin/mv | |
/usr/bin/nice | |
/usr/bin/nl | |
/usr/bin/nohup | |
/usr/bin/nproc | |
/usr/bin/numfmt | |
/usr/bin/od | |
/usr/bin/paste | |
/usr/bin/pathchk | |
/usr/bin/pinky | |
/usr/bin/pr | |
/usr/bin/printenv | |
/usr/bin/printf | |
/usr/bin/ptx | |
/usr/bin/pwd | |
/usr/bin/readlink | |
/usr/bin/realpath | |
/usr/bin/rm | |
/usr/bin/rmdir | |
/usr/bin/runcon | |
/usr/bin/seq | |
/usr/bin/sha1sum | |
/usr/bin/sha224sum | |
/usr/bin/sha256sum | |
/usr/bin/sha384sum | |
/usr/bin/sha512sum | |
/usr/bin/shred | |
/usr/bin/shuf | |
/usr/bin/sleep | |
/usr/bin/sort | |
/usr/bin/split | |
/usr/bin/stat | |
/usr/bin/stdbuf | |
/usr/bin/stty | |
/usr/bin/sum | |
/usr/bin/sync | |
/usr/bin/tac | |
/usr/bin/tail | |
/usr/bin/tee | |
/usr/bin/test | |
/usr/bin/timeout | |
/usr/bin/touch | |
/usr/bin/tr | |
/usr/bin/true | |
/usr/bin/truncate | |
/usr/bin/tsort | |
/usr/bin/tty | |
/usr/bin/uname | |
/usr/bin/unexpand | |
/usr/bin/uniq | |
/usr/bin/unlink | |
/usr/bin/users | |
/usr/bin/vdir | |
/usr/bin/wc | |
/usr/bin/who | |
/usr/bin/whoami | |
/usr/bin/yes | |
) | |
for i in ${array[@]}; do | |
echo "$i" | |
ldd "$i" |grep libc |cut -d ' ' -f 1 | |
echo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment