diff options
author | Chris Lamb <lamby@debian.org> | 2008-10-22 20:08:56 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:43 +0100 |
commit | 568f905c51c89cddd774caa3650c3b6fba0a0c00 (patch) | |
tree | 27006e3234f7dec64f2ab8f35bddc040fe17a5bf | |
parent | f1d230a6b5fa7147565a0e72059b3f41a6596cd6 (diff) | |
download | live-build-568f905c51c89cddd774caa3650c3b6fba0a0c00.zip live-build-568f905c51c89cddd774caa3650c3b6fba0a0c00.tar.gz |
Add utility to dump specified file to stdout.
-rwxr-xr-x | functions/echo.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/functions/echo.sh b/functions/echo.sh index c5ec7e5..e9573a8 100755 --- a/functions/echo.sh +++ b/functions/echo.sh @@ -79,3 +79,11 @@ Echo_breakage () Echo_message "${@}" } + +Echo_file () +{ + while read LINE + do + echo "${1}: ${LINE}" + done < "${1}" +} |