Solved

Dos Editor

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can I copy a solaris 10 Install DVD to local hard drive and install from there?  How? 21 166
Where to get php 5.6 for AIX 7.1? 5 98
Access_log 17 118
centos commands 6 48
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

813 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

11 Experts available now in Live!

Get 1:1 Help Now