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 /functions | |
parent | f1d230a6b5fa7147565a0e72059b3f41a6596cd6 (diff) | |
download | vyos-live-build-568f905c51c89cddd774caa3650c3b6fba0a0c00.tar.gz vyos-live-build-568f905c51c89cddd774caa3650c3b6fba0a0c00.zip |
Add utility to dump specified file to stdout.
Diffstat (limited to 'functions')
-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 c5ec7e5e8..e9573a8f2 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}" +} |