Project

General

Profile

« Previous | Next » 

Revision 9085

lib/sh/util.sh: added rtrim()

View differences:

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