Skip to content

Instantly share code, notes, and snippets.

@hasayvaz
Created December 12, 2010 21:57
Show Gist options
  • Save hasayvaz/738375 to your computer and use it in GitHub Desktop.
Save hasayvaz/738375 to your computer and use it in GitHub Desktop.
#!/bin/bash
PATH=/usr/bin/*
yol="/usr/bin/"
for f in $PATH; do
i=$((${#f}-${#yol}))
if [ $i -le 3 ]; then
echo $f
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment