[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[StrongED] Re: Add at end of file?



In article <mpro.l7mbho00kbfea01m4@xxxxxxxxxxxxxxxxxxxx.invalid>,
   Jeremy Nicoll - ml stronged <jn.ml.sed45@xxxxxxxxxxxxxxxxxxxx> wrote:
> "Richard Torrens (lists)" <Lists@xxxxxxxxxxxxxx> wrote:

> > The addition to the file is very simple: a final line
> > 
> > %CO:K,12,0%
> > 
> > This adds column K - which is exactly what I need.
> > 
> > Yes, there are other bits in the header section (e.g. defining window
> > width) which are beyond the scope of this request.
> > 
> > So I am looking for exactly what I asked - a way to append the same
> > 'word' to the end of a collection of files.

> I'm far frm convinced that SE is the best tool for this.  What do you
> intend to do to get all the files into SE in the first place?  Once
> there, were you planning to do the process and click on save for each
> loaded file?

Loafing multiple PD files into SE and editing them all is child's play:
the format of PD files is published and I have done this many, many times.
It's often a lot easier to edit a PD file in SE than to change it in PD!
Even quite simple things.

They are actually nanufacturing parts lists. Obe of the things I often do
is a "Used-on" list, by seaching all files for the occurrence of a
particular part number. Can't do that in PD!

> I'd guess it might be possible to identify the end of a file in a
> symbolic way then change that to <word><eof> using one of the fancier
> forms of search and replace. 

That is indeed what I cannot find out how to do! There is no <eof> marker.

> I'm not sure if you can follow that with a save.

"Simples"

> If I had to do it I'd use a short BASIC program to append the relevant
> bytes, and - perhaps - use *REPEAT to run that against each target file.  
You may be correct - because SE cannot do it.

I've not done any basic for so many years, not sure I could do that. I
suspect I could do it in Perl, but it would be a brain-acher!

> How many target files do you have to do this to?

100 or more, in several directories.

-- 
Richard Torrens.
http://www.Torrens.org.uk for genealogy, natural history, wild food, walks, cats
and more!

-- 
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxxxxx