line length
Michael J. Chinni, SMCAR-CCS-E
mchinni at pica.army.mil
Thu May 11 00:12:27 AEST 1989
In article <160 at ohsu-hcx.UUCP>, mkb at ohsu-hcx.UUCP (Marilyn Bushway) writes:
> If I have output of 132 characters and I want it to be 80 characters
> is there a unix command to change the line length???
> nosun!ohsu-hcx!mkb
> or
> tektronix!ohsu-hcx!mkb
> or nosun!ohsu-hcx!mkb at rutgers.edu
> Thanks in advance
> Marilyn
>
> --
> Marilyn Bushway 3181 S.W. Sam Jackson Park Rd. Portland, OR 97201
> (503) 279-8328 e-mail {nosun,tektronix,ogccse,qiclab} ohsu-hcx!mkb
On all UNIX systems I have seen, there is a command called "fold" which will do
this for you (assuming you want each 132char. line to become a 80char. line and
a 52 char. line). If you just want to throw away the extra 52 characters, try
"cut -c1-80".
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Michael J. Chinni
Chief Scientist, Simulation Techniques and Workplace Automation Team
US Army Armament Research, Development, and Engineering Center
User to skeleton sitting at cobweb () Picatinny Arsenal, New Jersey
and dust covered workstation () ARPA: mchinni at pica.army.mil
"System been down long?" () UUCP: ...!uunet!pica.army.mil!mchinni
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
More information about the Comp.unix.questions
mailing list