Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Looking for a good text editor

0 views
Skip to first unread message

Dave Pink

unread,
Oct 20, 2001, 5:06:04 PM10/20/01
to
I have 65 text files in one folder. They all have different file names
of course, and one word of text in each file is unique to that file;
but other than that they are all identical text files.

I need a text editor that will allow me to make changes to all 65
files simultaneously. For example, if I wanted to add the same lines
of text to all 65 files, I want to do so in one fell swoop, without
having to open each and every file and manually add the lines of text
65 times.

Anyone know any good software that'll give me this capability? Needs
to work on Windows NT and 2000. Thanks in advance.

Dale Ross

unread,
Oct 20, 2001, 7:09:39 PM10/20/01
to
Sounds like the job of scripting. Have looked into using VBScript for this
task?


--
Dale Ross

http://HarborWebs.com:8080 /
BBS - http://HarborWebs.com:8081 telnet://HarborWebs.com/

"Dave Pink" <tron...@msn.com> wrote in message
news:fa516b59.0110...@posting.google.com...

Debra Earle

unread,
Oct 21, 2001, 3:20:40 AM10/21/01
to
Dave Pink wrote:

Try UltraEdit, which is great for this sort of thing:

http://www.ultraedit.com


--
DE
Intranet Works
Law Office and Small Business Technology Consulting & Integration
[Please direct all replies to the newsgroup]

Mark H. Wood

unread,
Oct 22, 2001, 9:59:26 AM10/22/01
to
sed, from the Unix realm, is great for stuff like that. I think
there's one as part of the DJGPP project. Or you could pick up the
Cygwin package -- there's sure to be a sed port in there.

http://www.delorie.com/djgpp/getting.html
http://sources.redhat.com/cygwin/

--
Mark H. Wood, Lead System Programmer mw...@IUPUI.Edu
Make a good day.

Chris Janus

unread,
Oct 22, 2001, 10:22:39 AM10/22/01
to
Check out BK ReplaceEm.

http://www.orbit.org/replace/

It's worked well for me.

Chris Janus

Dave Pink <tron...@msn.com> wrote in article
<fa516b59.0110...@posting.google.com>...

Nicole Hamilton

unread,
Oct 22, 2001, 1:22:30 PM10/22/01
to
"Mark H. Wood" <mw...@mhw.ULib.IUPUI.Edu> wrote:
> sed, from the Unix realm, is great for stuff like that.

A decent shell to iterate over the list of files would also help and for
that, may I suggest my Hamilton C shell, which includes both a great shell
and sed (and lots of other cool stuff). More info and a free demo version
are available on my website at http://www.hamiltonlabs.com/cshell.htm. I am
the author, so if there are any questions, just let me know.

Regards,
Nicki Hamilton

Nicole Ashley Hamilton KD1UJ hami...@hamiltonlabs.com
http://www.hamiltonlabs.com Phone 978-440-8307 FAX 978-440-8308
Hamilton Laboratories, 61 Fairbank Road, Sudbury, MA 01776-1620, USA

Robert A. Matern

unread,
Oct 23, 2001, 3:24:51 PM10/23/01
to
And, of course, Emacs with Tags Mode does this kinda thing quite well...

I use GNU Emacs under Cygwin on WindowsNT & 2K; this allows me to use
the same editor environment I use for Unix.


"Dave Pink" <tron...@msn.com> wrote in message
news:fa516b59.0110...@posting.google.com...

Rob Stow

unread,
Oct 23, 2001, 4:07:39 PM10/23/01
to
> "Dave Pink" <tron...@msn.com> wrote in message
> news:fa516b59.0110...@posting.google.com...
> > I have 65 text files in one folder. They all have different file names
> > of course, and one word of text in each file is unique to that file;
> > but other than that they are all identical text files.
> >
> > I need a text editor that will allow me to make changes to all 65
> > files simultaneously. For example, if I wanted to add the same lines
> > of text to all 65 files, I want to do so in one fell swoop, without
> > having to open each and every file and manually add the lines of text
> > 65 times.
> >
> > Anyone know any good software that'll give me this capability? Needs
> > to work on Windows NT and 2000. Thanks in advance.

Sounds like you need something that lets you create a template, then
use the template to regenerate your 65 files whenever you modify the
template.

This is an easy little programming task - have someone on your staff
create a little applet that will take a template from one text file
and a set of data from a CSV or flat text file and merge the two
to generate your 65 files. Hell, send me $100 and I'll do it for you.

This can also be done from Excel if you are very familiar with
Excel macro programming. Put your Template in one cell, your
data in a table, then use an Excel macro to generate the text
files you need. In my case it would be much faster to write a
little Delphi program than to figure out how to do it with Excel,
but I know it _can_ be done with Excel simply because I have
used an Excel spreadsheet created by someone else that did this.

Rob


--
"rob.stow" is my name, "sk.sympatico.ca" is my mail host.
Ask mommy for help if you can't figure it out from there.
----------------------------------------------------------
Messages from these spam hosts are automatically deleted:
yahoo.com, hotmail.com, excite.com

Jim Cochrane

unread,
Oct 28, 2001, 6:49:27 PM10/28/01
to
Or the combination of bash and ex, also part of cygwin, would probably be more
flexible than sed.

For example, to insert "A new line" after line 6 in all files:

for f in *
do
echo '6a
A new line
.
wq'|ex $f
done

In article <9r18nu$o6o$1...@hercules.iupui.edu>,


Mark H. Wood <mw...@mhw.ULib.IUPUI.Edu> wrote:


--
Jim Cochrane
j...@dimensional.com

[When responding by email, include the term non-spam in the subject line to
get through my spam filter.]

0 new messages