Jbase Editor Find and Replace
Jbase Editor Find and Replace
The editor allows the user to replace any occurrence of a string on any line wit h another from the Command line. This is in addition to the overwrite mode. The Command Syntax is as follows: R{U}{nnn}dstring1dstring2{doption} U Replaces ALL occurrences of string1 with string2 on the current line only. nnn A numeric value for the number of lines, starting from the current one, over whi ch to perform the replace operation. If this optional parameter is specified and more than a single occurrence of string1 is found then all replacements are lis ted beneath the current editing screen. d is the delimiter character used to sep arate the string values. It can be any character not in either of the strings. string1 The string that is to be replaced. string2 The replacement string, which can be shorter or longer than the original. EXAMPLES R/ABC/DEF Replaces the first occurrence (reading from the left) of ABC in the current line with DEF. R9/*/! Replace on the next 9 lines, the first occurrence on the line of "*" with a "!". The changed lines are displayed before moving on. RU9/*/! Replace any occurrence of "*" with "!" over nine lines (the current line and the next 8). R999//*/F Starting at the first line place a "*" character on every line; all modified lin es are shown before returning to the original line. R/^/AM/* All occurrences of the "^" character on the line are replaced with "AM". R9/*// Removes (replaces with null) the first occurrence of "*" on the next nine lines. R/x//10 Removes the first 10 "x" characters on the current line.