- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I am embarrassed to have to ask such a simple question. As a VMS programmer switching over to Windows, I am trying to find a text editor capable of taking line edit commands (locate, delete, replace, insert - that sort of thing) to update a text file via a *.bat file.
The input text file would be generated by one of our own programs and be fine-tuned on the fly for subsequent (batch) application. (Specifically, the input file would be a deck for a finite element program in need of modification prior to use, the user including ancillary structure via lines of text to be included or modified.)
On VMS, the simple EDIT processor was good enough.
I imagined it would be easy to find a suitable windows environment editor. Perhaps my application is too simple - for I am seeking and not finding. There are far more sophisticated applications readily found. Does anyone have a suggestion for this very simple one?
The input text file would be generated by one of our own programs and be fine-tuned on the fly for subsequent (batch) application. (Specifically, the input file would be a deck for a finite element program in need of modification prior to use, the user including ancillary structure via lines of text to be included or modified.)
On VMS, the simple EDIT processor was good enough.
I imagined it would be easy to find a suitable windows environment editor. Perhaps my application is too simple - for I am seeking and not finding. There are far more sophisticated applications readily found. Does anyone have a suggestion for this very simple one?
- Balises:
- Intel® Fortran Compiler
Lien copié
7 Réponses
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
What you're looking for is an editor that accepts "editing commands". I don't know of one that is provided by Windows. I'm not familiar with what tools are available, though emacs comes to mind as one possibility.
Steve
Steve
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Thanks, Steve,
One of our chaps mentioned a program AWK for which a GNU version exists as freeware under the name "GAWK". This seems to be the ticket. I have downloaded it and am about to try it out. It is a batch oriented pattern recognizing program with the apparent functionality that I need.
Sorry if this seemed a little peripheral (at best) to FORTRAN programming. Our software generates finite element models which sometimes need to be edited on the fly before use. Perhaps others have similar needs.
One of our chaps mentioned a program AWK for which a GNU version exists as freeware under the name "GAWK". This seems to be the ticket. I have downloaded it and am about to try it out. It is a batch oriented pattern recognizing program with the apparent functionality that I need.
Sorry if this seemed a little peripheral (at best) to FORTRAN programming. Our software generates finite element models which sometimes need to be edited on the fly before use. Perhaps others have similar needs.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Ah, yes. I had thought about awk, but wasn't familiar enough with it to recommend it.
Steve
Steve
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I seem to remember that somewhere on the CVF disk is included an application called STRSUB.exe which may be used to substitute one string with another in a file.
Maybe this could help.
Greg
Maybe this could help.
Greg
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
KEDIT FOR WINDOWS is a very powerfull text editor, and you can download a demo at www.kedit.com.
Geraldo
Geraldo
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Xemacs claims a (add-on) capability to emulate EDT, so you may want to investigate that as well. I haven't used it though.
Joe
Joe
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
In addition to awk, which was mentioned earlier, you may want to look into sed and perl. These are Unix utilities, but they have been ported to Windows (see for example www.cygwin.com). You may recognize the s/oldstring/newstring/ syntax. It's strange, but many of the powerful tools one sees today seem to borrow from VMS.
Gabriel
Gabriel
Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable