Next: rpn Calculator Module
Up: Manual Pages
Previous: sddszerofind
  Contents
SDDS Editing
This manual page does not describe a program, but rather a facility that is common to several
programs. In particular, several SDDS programs use a common syntax for specifying editing of
string data. The editing commands for these programs are composed of a series of subcommands of
the form
[count]commandLetter[commandSpecificData]
As indicated, the count and commandSpecificData are optional.
The commands are as follows:
- [n]f -- move forward 1 or n characters.
- [n]b -- move backward 1 or n characters.
- [n]d -- delete the next character or n characters.
- [n]F -- move forward 1 or n words.
- [n]B -- move backward 1 or n words.
- [n]D -- delete the next word or n words.
- a -- Go to the beginning of the string.
- e -- Go to the end of the string.
- [n]i-delim-text-delim- -- Insert text, delimited
by the character -delim- 1 or n times. For example, ``i/thisString/'' would insert
``thisString'' once.
- [n]s-delim-text-delim- -- Search for text, delimited
by the character -delim- 1 or n times. The position is left at the end
of the search string. -delim- may be any character except a question mark.
- S-delim-text-delim- -- Search for text, delimited
by the character -delim-, leaving the position at the start of the
search string. -delim- may be any nonspace character except a question mark.
- [n]s?-delim-text-delim- -- Search for text, delimited
by the character -delim- 1 or n times. Abort all subsequent editing
if the search fails. If the search suceeds, leave the position at the end of the
search string. -delim- may be any nonspace character except a question mark.
- S?-delim-text-delim- -- Search for text, delimited
by the character -delim-. Abort all subsequent editing
if the search fails. If the search suceeds, leave the position at the start of the
search string. -delim- may be any nonspace character except a question mark.
- [n]k -- Delete forward from the present position 1 or n characters, placing them in the kill buffer.
- [n]K -- Delete forward from the present position 1 or n words, placing them in the kill buffer.
- zchar -- Delete forward from the present position up to the first occurence of the character char,
placing the deleted text in the kill buffer.
- [n]Zchar -- Delete 1 or n times up to and including the
character char, placing the deleted text in the kill buffer.
- [n]y -- Yank the kill buffer into the string 1 or n times.
- [n]%-delim-text1-delim-text2-delim- --
Replace text1 with text2 1 or n times starting at the
present position. -delim- may be any nonspace character. For example,
``10%/c/C/'' would capitalize the next 10 occurences of the character 'c'.
- $$
- see also:
Next: rpn Calculator Module
Up: Manual Pages
Previous: sddszerofind
  Contents
Hairong Shang
2004-01-16