array=$(ls -1; echo "end of file";)
printf %s "$array" | while IFS= read -r line
do {
echo $line
} doneAnother way using sedarray=$(ls -1 | sed '$aend of file')
printf %s "$array" | while IFS= read -r line
do {
echo $line
} donearray=$(ls -1; echo "end of file";)
printf %s "$array" | while IFS= read -r line
do {
echo $line
} doneAnother way using sedarray=$(ls -1 | sed '$aend of file')
printf %s "$array" | while IFS= read -r line
do {
echo $line
} done
No comments:
Post a Comment