Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Unix editors w/features for dealing with columnar data?
@ 1995-04-28  4:00 Charles F Randall
  1995-04-28  4:00 ` Larry Felawka
                   ` (5 more replies)
  0 siblings, 6 replies; 25+ messages in thread
From: Charles F Randall @ 1995-04-28  4:00 UTC (permalink / raw)


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)

	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/



^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~1995-05-15  4:00 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-28  4:00 Unix editors w/features for dealing with columnar data? Charles F Randall
1995-04-28  4:00 ` Larry Felawka
1995-04-30  4:00 ` Jerry Leslie
1995-05-01  4:00   ` Jon Leech
1995-05-02  4:00     ` Jerry Leslie
1995-05-12  4:00       ` Jason King
1995-05-04  4:00     ` Jason King
1995-05-04  4:00       ` Jerry Leslie
1995-05-01  4:00 ` davis
1995-05-01  4:00   ` Anil Joshi
1995-05-04  4:00     ` Jason King
1995-05-04  4:00       ` Anil Joshi
1995-05-04  4:00         ` davis
1995-05-04  4:00           ` Anil Joshi
1995-05-08  4:00           ` Jason King
1995-05-09  4:00         ` Jason King
1995-05-15  4:00           ` Anil Joshi
1995-05-01  4:00 ` Barbara Vaughan
1995-05-03  4:00 ` VITAL
1995-05-09  4:00   ` Benjamin T. Sugimori
1995-05-09  4:00   ` Harris Revankar
1995-05-09  4:00   ` Harris Revankar
1995-05-09  4:00   ` Benjamin T. Sugimori
1995-05-09  4:00   ` Benjamin T. Sugimori
1995-05-03  4:00 ` Peter da Silva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox