Get

This commands selects all lines that match the search string specified and deletes all others. In that sense it is like the grep command under UNIX. The syntax is:

    get /string/
or
    get //regularexpression/
The syntax for specifying search strings follows the rules for regular searches (see p.[*]) or for regular expression searches (see p.[*]). The final / can be followed by options, just like with the regular search commands. Remember, regular expressions cannot be used in backward search mode.