Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsj!cbnewsi!npl From: npl@cbnewsi.att.com (nickolas.landsberg) Newsgroups: comp.unix.questions Subject: Re: Splitting up a too-wide text file Summary: yes, there is a split Keywords: split Message-ID: <1991Mar15.032648.21@cbnewsi.att.com> Date: 15 Mar 91 03:26:48 GMT References: <1991Mar15.003416.16893@athena.mit.edu> <1991Mar15.012231.7048@convex.com> Organization: AT&T Bell Laboratories Lines: 19 How about the following for those who don't have access to perl and such: (pseudo Bourne sh, ksh script) LENGTH=whateveryourlinelength split -${LENGTH} for ii in x* # assumes no other files in directory starting with "x" do A="your_favorite_awk_or_sed_or_cut_or_other_script" ${A} "args to get first 80 cols" ${ii} ${A} "args to get next 80 cols" ${ii} # more if needed done rm -f x?? OK.... I know that it takes mucho disk space if the file is large, but, honestly, where is there a whole in the above? Nick Landsberg