From: joshi@sal.cs.uiuc.edu (Anil Joshi)
Subject: Re: Unix editors w/features for dealing with columnar data?
Date: 1995/05/01 [thread overview]
Message-ID: <3o3fjv$ens@vixen.cso.uiuc.edu> (raw)
In-Reply-To: 3o33l5$l91@senator-bedfellow.MIT.EDU
davis@space.mit.edu writes:
> > Find the lines that have '1234' in columns 1-4 and change
> > columns 30-35 to 'abcdef'.
>There are many ways to do this using JED. For example, one could use
>regular expression searches, keyboard macros, etc... However, if this is a
>routine task, I suggest something like the following function:
> define solution_1 ()
> {
> push_spot (); % save position
> bob (); % goto beginning of the buffer
> while (bol_fsearch ("1234"))
> {
> goto_column (30);
> deln (6);
> insert ("abcdef");
> }
> pop_spot (); % goto original position
> }
There seems to be a misunderstanding here. Unless JED has the kind of column
manipulations that are possible as in XEDIT, ISPF or THE, this kind of
manipulation is hard only through regular expressions. Added to that, you are
asking the users to "program". Leaving that aside, let me ask for a slightly
different kind of a thing.
What if the id number is columns 21-24 instead of 1-4? I don't know JED but am
guessing that bol_search searches from the beginning of the line.
There are somethings that I sorely miss in the (two most popular) unix editors
which are very useful in a variety of situations -
1. "x"clude lines
2. Setting left and right margins aka ISPF editor
3. Floating Ruler
4. Mask lines
Anil
--
Sathsangatve nissangatvam From good company to no company
Nissangatve nirmohatvam From no company to lack of desire
Nirmohatve nischalatatvam From lack of desire to concentration of mind
Nischalatatve jeevanmuktihi From concentration of mind to liberation of life
next prev parent reply other threads:[~1995-05-01 4:00 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Barbara Vaughan
1995-05-01 4:00 ` davis
1995-05-01 4:00 ` Anil Joshi [this message]
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-03 4:00 ` Peter da Silva
1995-05-03 4:00 ` VITAL
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-09 4:00 ` Benjamin T. Sugimori
1995-05-09 4:00 ` Harris Revankar
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox