Revision 13324
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
436 | 436 |
nl=' |
437 | 437 |
' |
438 | 438 |
|
439 |
# usage: by itself: split_lines str; use ${lines[@]}
|
|
440 |
# with wrapper: declare lines; wrapper "split_lines" str |
|
439 |
# usage: by itself: split_lines str; use ${lines[@]}
|
|
440 |
# with wrapper: declare lines; wrapper "split_lines" str; use ${lines[@]}
|
|
441 | 441 |
function split_lines() { split "$nl" "$1"; lines=("${parts[@]}"); } |
442 | 442 |
# no echo_func because used by log++ |
443 | 443 |
alias split_lines='declare lines; "split_lines"' |
Also available in: Unified diff
lib/sh/util.sh: split_lines(): usage: matched up and synced different syntaxes