Solved

Dos Editor

Posted on 1998-01-06
4
248 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Cheers Braveheart (you from Scotland??)

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


0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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…
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.

763 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

10 Experts available now in Live!

Get 1:1 Help Now