RosettaCodeData/Task/Align-columns/UNIX-Shell/align-columns-2.sh

15 lines
1.1 KiB
Bash
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
$ ./just-nocenter.sh
Given a text file of many lines, where fields within a line
are delineated by a single 'dollar' character, write a program
that aligns each column of fields by ensuring that words in each
column are separated by at least one space.
Further, allow for each word in a column to be either left
justified, right justified, or center justified within its column.
2013-04-10 14:58:50 -07:00
Given a text file of many lines, where fields within a line
are delineated by a single 'dollar' character, write a program
that aligns each column of fields by ensuring that words in each
column are separated by at least one space.
Further, allow for each word in a column to be either left
justified, right justified, or center justified within its column.