Some Macintosh applications create files with extremely long lines. Since some Unix-style utilities which are approximated by MacShell work in a line-oriented manner, these long lines present problems. This utility was written as a partial solution to these problems. It copies its input to its output and attempts to insert the Macintosh "return" character (octal 15) after spaces or tabs to break long lines into managable sized pieces. By default, seg begins looking for a place to insert a return after the 65th character on a line. If a space or a tab is not found before the 4096th character, a return is inserted anyway. Either or both of these parameters may be redefined with optional command line arguments.
This utility reads from files on the command line. If no file names are found, it reads from standard input.
OPTIONS
-s n1 Where "n1" is a positive integer, causes seg to start looking for a space or a tab after which to insert a return at the "n1"th character on a line.
-m n2 Where "n2" is a positive integer, causes seg to treat n2 as the maximum allowable line length. A return is inserted after the "n2"th character irregardless.
Note that n1 is only meaningful if it is less than n2.