Solved

Dos Editor

Posted on 1998-01-06
4
260 Views
Last Modified: 2010-04-21
Sorry for the Unix Peeps, But there is no Dos section!!!

I'm trying out a new dos editor called 'E' (think it comes with an old version of dos), to change a number of asci based files in one batch.

So far I can open all the files and run a macro on them that it looks for the old string and replaces it with the new string.  It then saves the files and opens up the next file.  I then however have to run the macro on that file, and again on every other file in the group because I do not know how to loop the macro so that when it opens the next file, it runs from the start again....

Heres the macro so far - (the files are already open)

change /old/new/c a *
save
cntrl + N  (moves to next file)

And thats it - i cant seem to find a command that will loop the macro and so run it on every file in the ring.


Please help - either that or suggest a new (pref shareware) editor that can do batch editing easily!!
0
Comment
Question by:garyennis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 10

Expert Comment

by:rbr
ID: 2008507
You don't need any editor for doing this. You can use the unix program awk for replacing any character in files.
0
 
LVL 1

Author Comment

by:garyennis
ID: 2008508
Sorry, Maybe I didnt make myself clear -

Im using Dos and Windows not UNIX!!!!  Thanks anyway....Any other suggestions....
0
 
LVL 3

Accepted Solution

by:
braveheart earned 100 total points
ID: 2008509
Back in the days when I used DOS for development work we used to use an editor called BRIEF which was very powerful and tailorable. I don't think it is shareware or freeware but a web search might reveal more information (I just tried unsuccessfully).

Say, maybe you could use a WORD macro and save as plaintext.

You are more likely to get a response to a DOS question from a WINDOWS related section than from a UNIX section. Note that you can also pick up some of the UNIX utilities for DOS such as awk and grep as freeware - scan the web.
0
 
LVL 1

Author Comment

by:garyennis
ID: 2008510
Cheers Braveheart (you from Scotland??)

Although it doesn't solve my immediate problem it does give me some fresh ideas.....


0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question