diff options
Diffstat (limited to 'src/xilib.sh')
-rw-r--r-- | src/xilib.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xilib.sh b/src/xilib.sh index c21bbb9..57dd10c 100644 --- a/src/xilib.sh +++ b/src/xilib.sh @@ -20,4 +20,15 @@ checkroot () { } } +# reverse the order of lines +# +reverse_lines () { + local result= + while IFS= read -r line; do + result="$line + $result" + done + echo "$result" +} + |