How can I resolve the problem of the tables going to the right. I just want it to be shown under 1
.
Here's my script with START added. The alignment has gone wonky now:
while IFS="," read f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
do
printf "START %10s %10s %10s %10s %10s %10s %10s %10s %10s %10s %10s %5s" $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12; # ifet the student id
done < records.csv
echo " Press <enter> to return to main menu"
read null
records.csv
. Can you post at least sample contents?printf "%10s %10s %10s %5s %10s %5s %5s %5s %5s %10s %10s %10s" $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12;
toprintf "START %10s %10s %10s %5s %10s %5s %5s %5s %5s %10s %10s %10s" $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12;
and see where the START appears.records.csv
? Runcat -vet records.csv
are you seeing^M$
at the end of any lines? As earlier requested, post a sample of your csv file as text.