Solved

Dos Editor

Posted on 1998-01-06
4
254 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IBM AIX Cannot Install AIX ToolKit Applications for Linux 11 142
Generate FIPS 140-2 Public Key on Unix 5 67
reinstall 1 70
Skill Development 15 163
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 …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now