z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Changing position using a search string (regular expression)

z/OS UNIX System Services User's Guide
SA23-2279-00

If you don't know the number or position of the line you want to make your current working line, you can locate a string (or regular expression) in the line. To search forward for one or more words or a string of characters, enter:
/regexp/
where regexp is one or more words or a string of characters. The line containing the search string is displayed and it is now your current working line.
To search backward for one or more words or a string of characters, enter:
?regexp?
where regexp is one or more words or a string of characters. The line containing the search string is displayed and it is now your current working line.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014