diff options
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -14,3 +14,17 @@ function isingroup() return 1 } +function inlist() +{ + k="$1" + list="$2" + for e in $list + do + if [ a"$k" = a"$e" ] + then + return 0 + fi + done + return 1 +} + |