Aerospace



Discussion Forum

Home

Company Information

Information Request

Linux How-to Guides

ADSP 21xx
Digital Signal Processing
Tutorials

SW Utilities

On-line Order Form

Aerospace Projects

Commercial Projects

Circuit Boards

Server Support


bonk

Have you found this site useful? Did we save you time? Did we cure your head-ache? Is your hair growing back now?

Please make a donation to help with maintenance.


Objective Real-Time Software on the ADSP21XX

FR version 2.1, Find and Replace.

1. Introduction

FR is a powerful DOS utility, for use with any ASCII text files and can be used on any source code, HTML files etc.

FR is intended for use in a DOS batch file, in order to perform repetitive modifications rapidly. It really shines when you want to change certain HTML tags throughout a batch of Web documents, or change bad variable names in source code.

2. Usage

FR is saved in directory aerosoft on the CD-ROM. It is a very small program, so it would be good to copy it to your utilities directory on your hard disk, for quick access.

Create a DOS batch file listing all the files you want to modify:

DIR *.c > f.bat

Edit the file list in f.bat.

Example:

fr infile.ext outfile.ext "find string" "replace string"

FR can also handle numeric wild cards occurring in otherwise similar text strings. For example, it can change label1, label2... to somethingelse1, somethingelse2...

Example with numeric wildcard:

fr infile outfile "find$$" "replace$$"



Copyright © 1996-2008, Aerospace Software Ltd., GPL.