From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 107393,62951c700994df34 X-Google-Attributes: gid107393,public X-Google-Thread: fee84,62951c700994df34 X-Google-Attributes: gidfee84,public X-Google-Thread: f9400,62951c700994df34 X-Google-Attributes: gidf9400,public From: Harris Revankar Subject: Re: Unix editors w/features for dealing with columnar data? Date: 1995/05/09 Message-ID: <3oojnq$pv6@cmcl2.NYU.EDU>#1/1 X-Deja-AN: 102298884 distribution: inet references: <3nr6nl$cak@news.iastate.edu> to: smosna@cs.nyu.edu content-type: text/plain organization: New York University x-url: news:betuD7zJz6.Fuq@netcom.com mime-version: 1.0 newsgroups: comp.editors,comp.os.ultrix,comp.unix.osf.osf1 x-mailer: Mozilla 1.1N (X11; I; OSF1 V3.0 alpha) From: betu@netcom.com (VITAL) Newsgroups: comp.editors,comp.os.ultrix,comp.unix.osf.osf1 Subject: Re: Unix editors w/features for dealing with columnar data? Date: Wed, 3 May 1995 04:47:29 GMT Organization: NETCOM On-line Communication Services (408 261-4700 guest) Message-ID: References: <3nr6nl$cak@news.iastate.edu> In article <3nr6nl$cak@news.iastate.edu>, Charles F Randall wrote: >We're moving a large numbers of users from a mainframe environment to >Unix. Some of them have large data files which can be described in the >following manner: (trivial example) Try Crisp 4.2 out. It is commercial though. A demo of it is on: ftp.uu.net//vendor/vital/beta > > Columns Description > ------- ----------- > 1-4 id number > 5-24 name > 25-30 dat1 > 30-35 dat2 > ... etc > >In essence, they've got what I call fixed column data. (not whitespace >separated - I'm mainframe-challenged, sorry for the wording) They're >used to using Stanford Wylbur (not the same as some commercial Wylbur >implementations) to do their editing tasks. > >They do things like: > > Find the lines that have '1234' in columns 1-4 and change > columns 30-35 to 'abcdef'. > > Find the lines with '1234' in columns 1-4 and 'dog' starting in > column 5 and insert three spaces starting in column 25. > > Find the lines with 'dog' starting in column 5 and copy columns 25-30 > to 30-35. > > Find the lines longer than 35 characters and replace columns 5-24 > with 'invalid' (left justified, blank padded) > > Change the 2nd and 5th occurrences of 'dog' in lines 300-450 to 'cat'. > >I've given them a three hour course on Unix Tools (ending with sed, awk, >and Perl) and I've shown them examples using the standard Unix tools but >they're used to interactively editing these files. > >Is anyone familiar with an editor in the Unix environment with extensive >columnar manipulation features like this? > >-Randy > >Charles F. Randall, IV e-mail: cfrandal@iastate.edu >Systems Analyst voice : (515) 294-9316 >Computation Center office: 113 Durham >Iowa State University http://www.public.iastate.edu/~cfrandal/