Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!usc!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.questions Subject: Re: Splitting up a too-wide text file Message-ID: <1991Mar15.003416.16893@athena.mit.edu> Date: 15 Mar 91 00:34:16 GMT References: Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 26 If you've got "cut", you can use that. RTFM cut. If you've got "colrm", you can use that. RTFM colrm. If you don't have "cut" or "colrm", then you can use "sed" to remove the first part of each line, like sed 's/^................................................//' or to print the last part of each line, like sed 's/^.*\(..............................................\)/\1/' You get the idea, I hope. You can use perl, although perhaps that's overkill in this case (or perhaps perl is *always* overkill :-). You can use "substr" inside awk to do it. -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710