Revision 9085
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
93 | 93 |
|
94 | 94 |
sed() { self -"$sed_ere_flag" "$@";} |
95 | 95 |
|
96 |
rtrim() { sed 's/[[:space:]]+$//' <<<"$1"; } |
|
96 | 97 |
|
98 |
|
|
97 | 99 |
#### arrays |
98 | 100 |
|
99 | 101 |
join() { local IFS="$delim"; echo "$*"; } # usage: delim=... join elems... |
Also available in: Unified diff
lib/sh/util.sh: added rtrim()