Skip to content

Instantly share code, notes, and snippets.

@hasayvaz
Created December 12, 2010 21:56
Show Gist options
  • Save hasayvaz/738373 to your computer and use it in GitHub Desktop.
Save hasayvaz/738373 to your computer and use it in GitHub Desktop.
#!/bin/bash
PATH=/usr/bin/*
for f in $PATH; do
if [ -x $f ]; then
echo "executable-->$f"
fi
if [ -h $f ]; then
echo "symbolic-->$f"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment