Created
September 16, 2010 22:06
-
-
Save isaacs/583249 to your computer and use it in GitHub Desktop.
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
# Create a more gnuish userspace | |
cmds="ar as awk basename cat chgrp chmod chown chroot cksum cmp comm | |
cp csplit cut date dd df diff diff3 diffmk dirname du echo | |
egrep env eqn expand expr factor false fgrep find fmt fold gprof | |
grep groups head hostid id indxbib install join kadmin kill ld link | |
ln logname lookbib ls make mkdir mkfifo mknod mktemp mv neqn nice nl | |
nm nohup nroff od paste patch pathchk pr printf prof pwd ranlib | |
refer rm rmdir sdiff sed size sleep soelim sort split strings strip | |
stty sum sync tail tar tbl tee test touch tr troff true tsort tty | |
uname unexpand uniq unlink unzip uptime wc who xargs yes zcat" | |
for i in $cmds | |
do | |
if which $i 2>/dev/null 1>/dev/null && \ | |
which g$i 2>/dev/null 1>/dev/null | |
then | |
src=$(which g$i) | |
dest=/home/node/local/bin/$i | |
[ -f $dest ] && grm $dest | |
gln -s $src $dest | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment