diff options
author | 2021-03-26 12:58:56 +0100 | |
---|---|---|
committer | 2021-03-26 12:58:56 +0100 | |
commit | f54922269049658bdd53adadd1055e15fd490fba (patch) | |
tree | c00a8a1f731d1d95e3f33f288527f2215b509f1a /dup.sh | |
download | acme-scripts-f54922269049658bdd53adadd1055e15fd490fba.tar.gz acme-scripts-f54922269049658bdd53adadd1055e15fd490fba.zip |
Initial commit
Diffstat (limited to 'dup.sh')
-rwxr-xr-x | dup.sh | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +#!/bin/sh + +# Duplicate a string + +NEWLINE=`printf "\n"` +IFS='' +while read -r line || [ -n "$line" ]; do + LINES="$LINES"`printf "$line"`"$NEWLINE" + #echo $line +done + +for line in "$LINES"; do + printf "$line" +done |