i am using this
but this is only printing the strings that end with \n, and skipping the last one because it doesnt have it. How can I print them all?Code:#!/usr/bin/env bash
curdir=`pwd`
while read line; do
printf $line
done < "test"
cd $curdir