Looping

Qedit allows looping string searches in almost every command. To list all lines containing “Sam Spade”, use:

   /list "Sam Spade"  

In command files and UDCs you have another choice: the While command. This allows you to execute a set of commands each time a string is located.

Note that While looping is not required to replace strings in all lines containing a search string. The Change command will do it, as in this example, where any lines containing the string “!job” in the first four columns will have the string “oldpass” changed to “newpass”.

   /change "oldpass","newpass" "!job"(1/4)  

You can also modify, delete, replace, hold, keep, or copy lines that match a string.

Looping