blob: ee3f2c66a1038af50390d6c78fcf644d05187a43 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# originally from Mike Haertel
foo() { case $1 in a*) ;; *) ;; esac ;}
bar() { case $1 in [abc]*) ;; *);; esac ;}
baz() { case $1 in xyzzy) ;; *) ;; esac ;}
for x in /usr/lib/*/*
do
foo $x
bar $x
baz $x
done
|