gitignore, kshrc, notify_azan, notify_cpu
[dotfiles_afify.git] / .scripts / services.sh
blobd383521890b2c0b9a89d6f5c59cd3086558e02c4
1 #!/usr/bin/env bash
3 phrase=`cat /etc/services | \
4 grep -v ^\s*# | \
5 grep -v ^\s*$ | \
6 sed -e's/\s.*//' | \
7 sort -ui | \
8 dmenu -i -l 20`
10 rtrn=$?
12 if test "$rtrn" = "0"; then
13 echo "You chose servicename $phrase"
14 else
15 echo "You aborted."