next Previous up contents index
Next: BACK   Previous: &   Up: The Commands in Detail



ALIGN [ (l1 [l2]) ] /kette/ [ MOVEALL ] [ H ] [ I ] [ n | ALL ]
AL
or

ALIGN [ (l1 [l2]) ] col [ LEFT | RIGHT [ MOVEALL ] ] [ n | ALL ]
AL
This command aligns the records horizontally.

Lines may be specified explicitly: from line l1 to line l2 or from line l1 to the end of data. They may also be specified implicitly: n lines beginning with the current line or all lines of the workfile.

In the first version all those lines of the concerned lines are aligned which contain the character string string. They will be aligned in such a manner that string is positioned one below the other. The result goes after that line in which string is farthest to the right. The reason for that is that all lines may be scrolled to the right but not all to the left. Those characters which are before the string stay in its place. If, for example, you have the lines

then they look after the command ALIGN /[/ ALL like

     abc.def.de - -    [23/Dec/2005...
     xyx.ghijkl.at - - [24/Dec/2005...
Additionally you may align the lines as a whole by specifying the parameter MOVEALL which provides for moving of the characters before the string as well. Therefore the command ALIGN /[/ MOVEALL ALL would have given:

        abc.def.de - - [23/Dec/2005...
     xyx.ghijkl.at - - [24/Dec/2005...
In the second version the alignment of the concerned lines is done according to the specified column. If this column contains a blank character and if there are no other parameters given, then all characters after that column are moved to the left in such a way, that the the first non-blank character comes in that column. But if you specify the parameter RIGHT then all characters before that column are moved to the right in such a way, that the first non-blank character comes to this column. If you specify the additional parameter MOVEALL then the whole line will be moved to the right, that is, also the characters after that column take part in the moving. If you have, for example, the following lines:

     abc     def
     1234567 90123456
       xyz        ABC
then the command ALIGN 7 ALL has the result

     abc   def
     1234567 90123456
       xyz ABC
the command ALIGN 7 RIGHT ALL has the result

         abc def
     1234567 90123456
         xyz      ABC
and the command ALIGN 7 RIGHT MOVEALL ALL has the result

         abc     def
     1234567 90123456
         xyz        ABC

next previous up contents index
Next: BACK   Previous: &   Up: The commands in Detail