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 f12do 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 iddone < records.csvecho  Press <enter> to return to main menuread null
Alignment when printing a series of records
shell script;csv;printf;table
You need to add a newline at the end of the printf statement, like so:             printf START %10s %10s %10s %10s %10s %10s %10s %10s %10s %10s %10s %5s\n $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12; # ifet the student id(note the \n)