pad - pad rows with blanks
SYNOPSIS
pad [-fc ] [-Dn] [ -n ] < tableorlist
DESCRIPTION
pad
adds extra spaces to the end of the last column of each
row in
tableorlist.
It is useful for setting up a file that to be updated by the
update
command.
update
puts an edited row back into the file in the same
place it was taken out.
If the user adds characters while editing
the record, it will not fit.
The
replace
command looks for trailing and leading spaces
to trim off to fit the record back in.
If it does not find enough room,
replace
appends the record to the end of the file.
Padding gives each record a fixed number of extra spaces to be
trimmed as needed.
OPTIONS
- -fc
- use c (instead of TAB) as the input column
separation character.
- -Dn
- turn on debugging at level n, or 1 if n
is not specified.
- -n
- n is the number of spaces that will be added to the last
row.
The default is 70 spaces.
EXAMPLE
$ pad -60 < maillist | see
$
Number^J1$
Name^JRonald McDonald$
Company^JMcDonald's$
Street^J123 Mac Attack$
City^JMemphis$
State^JTENN$
Phone^J(111) 222-3333 $
$
Number^J2$
Name^JChachita Banana$
Company^JUnited Brands$
Street^JUno Avenito De La Revolution$
City^JSan Jose$
State^JEl Salvadore$
Phone^J1234 $
$