Xinqi Bao's Git
projects
/
dmenu.git
/ blob
summary
|
log
|
commit
|
diff
|
tree
history
|
raw
|
HEAD
I also dislike sort -u, I support that each Unix tool does one job and does it right ;)
[dmenu.git]
/
dmenu_path
1
#!/bin/sh
2
IFS
=:
3
for
dir
in
$PATH
4
do
5
for
file
in
"
$dir
"
/*
6
do
7
test -x
"
$file
"
&&
echo
"
${file##*/}
"
8
done
9
done
|
sort
|
uniq