repo.or.cz
/
dotfiles_afify.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
gitignore, kshrc, notify_azan, notify_cpu
[dotfiles_afify.git]
/
.scripts
/
services.sh
blob
d383521890b2c0b9a89d6f5c59cd3086558e02c4
1
#!/usr/bin/env bash
2
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`
9
10
rtrn
=
$?
11
12
if
test
"
$rtrn
"
=
"0"
;
then
13
echo
"You chose servicename
$phrase
"
14
else
15
echo
"You aborted."
16
fi