home *** CD-ROM | disk | FTP | other *** search
- RI(9)/VEDIT and VEDIT PLUS - Multiple File Processing/
- M(H) !Display header
-
- YT/
- You often need to perform the same editing operation on a whole group of
- files. For example, you might want to see which files contain a particular
- word (such as a program variable name). Or you might discover that you have
- consistently misspelled the same word in twenty files. Or you might want to
- print an entire group of files.
-
- These and similar operation are easily performed in VEDIT and VEDIT PLUS using
- the supplied macro "WILDFILE.VDM". As its name implies, the group of files
- may either be specified individually or using the wildcards "*" and "?".
-
- This demo will first have you search for all occurrences of a word in all the
- text files on this demo disk. It will then have you display the beginning
- of each text file.
-
- /
-
- M(K)
-
- YWI YWB(1) 8
- Q26YEA !Set editing attribute
- YWS(1) Q27YEA !Set attribute in lower window "1"
- B #K !Empty edit buffer
- +RL(P) wildfile.vdm !Load macro
-
- EE(1)
- B #K
- I\To search through all text files enter "*.TXT" for the first prompt, and
- press <Enter> twice. At the "Execute..." prompt press "S". At the search
- prompt type "programs" and press <Enter>.
-
- At the "Display line..." prompt press "V" to enter editing mode.
- Alternatively, you could just display the line.
-
- Press <Enter> to start. \
-
- B -V !Display instructions
-
- EE(Y) EQY !Convert edit buffer Y back to text register
- EE(@) !Back to main text
- YWS(@) !Let WILDFILE run in default window
-
- M(P) !Execute the macro
-
- YWI YWB(1) 8
- Q26YEA !Set editing attribute
- YWS(1) Q27YEA !Set attribute in lower window "1"
- EE(1)
- B #K
- I/To display the beginning of the text files enter "*.TXT" for the first
- prompt, and press <Enter> twice. At the "Execute..." prompt press "C" to
- execute a command. At the command prompt enter:
-
- 11T
-
- This will display the first 11 lines in each file. At the next prompt
- press "Y" to pause the screen display after each file. /
-
- B-V
-
- EE(@) !Back to main text
- YWS@ !Let WILDFILE run in default window
- M(P)
-
- RI(9)/VEDIT PLUS - Multiple File Processing/
- M(H)
-
- YT\
- Obviously, many other useful operations can be performed using the WILDFILE
- macro. (It is more flexible than the similar UNIX "grep" function.)
-
- Although outside the scope of this demo, you could create a file containing
- numerous search and replace commands. The WILDFILE macro could then
- automatically perform the entire list of search and replace operations on an
- entire group of files.
-
- After finishing this demo you might want to try the WILDFILE macro on your own
- text or program files. As long as you don't attempt to modify the files, the
- demo VEDIT can search for text in files of up to 60K in length. Try it to see
- how fast VEDIT can search! (VEDIT is the fastest editor available for
- performing search/replace in multi-megabyte files.)
-
- You can invoke WILDFILE directly using the supplied batch file "WILDFILE.BAT".
- Simply give the DOS command:
-
- WILDFILE
- \
-
- M(K)
-