home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.robelle3000.ai 2014
/
2014.06.ftp.robelle3000.ai.tar
/
ftp.robelle3000.ai
/
faq
/
q7.txt
< prev
next >
Wrap
Text File
|
1995-10-11
|
2KB
|
47 lines
Qedit and Strings.
Strings play a variety of roles in Qedit. Strings can be delimited by quotes
or by any of the following special characters: | ~ _ ! # > &:. Most Qedit
commands accept a string as a linerange qualifier, but then the commands are
applied only to lines containing that string.
One of the forgotten features of Qedit commands is their ability to use
strings as a rangelist. Use this in any command that accepts any rangelist.
You can further qualify strings if you use window options on the string being
searched.
Here are some instances where this feature is useful:
Deleting all lines with the string "superfluous".
/delete "superfluous"
Deleting all lines without the string "superfluous".
/delete "superfluous" (nomatch)
Change "bug" to "undocumented feature", but only on those lines that have the
string "unexplained".
/change "bug"undocumented feature" "unexplained"
Delete all blank lines.
/delete "~" (pattern) {blank lines}
Find the next occurrence of the string ".font" that starts in the first
column.
/find ".font" (1/5)
List all occurrences of "Frank", but not in words such as "Frankenstein".
/list "Frank" (smart) {ignores "Frankenstein"}
By default, Qedit searches for matches to a string. Specifying (NOMATCH)
reverses this logic. Likewise, string searches can be restricted to particular
columns (10/40), or to a caseless search (UPSHIFT).
If the string represents a pattern, this should be specified with valid
pattern characters:
@ anything, including nothing # single numeric digit
? single alphanumeric digit ~ zero or more spaces
[Taken from the "Qedit's Forgotten Commands" tutorial given at Interex
in Toronto.]