Find Text

 

Updated: May 13, 2016

Applies To: System Center 2012 SP1 - Orchestrator, System Center 2012 - Orchestrator, System Center 2012 R2 Orchestrator

The Find Text activity finds lines in a text file. Use the Find Text activity to find according to a search string that you specify.

This activity replaces functionality in the Manage Text File legacy activity from Opalis 6.3.

Before you configure the Find Text activity, you need to determine the following:

  • The name of the file that you want to search in.

  • The encoding type of the file you want to search in uses.

  • The text that you want to search for.

Use the following information to configure the Find Text activity.

Details Tab

SettingsConfiguration Instructions
FileType the path and name of the file that you want to find the text in, or click the ellipsis button (...) and browse for it.
File encodingClick the ellipsis button (...) and select the format that the file is encoded in from the File encoding drop-down list. Verify that you select the correct encoding format: if the file uses a different encoding format, the activity fails.
Search textType the text that you are searching for in the file.
Case sensitiveSelect this option to search only for lines where the case of the words matches the text from the Search text field exactly.
Use regular expressionsSelect this option to use regular expressions in your search. For more information on regular expressions, see Using Regular Expressions.
ResultSelect one of the following options for your results:

 Only the first line that matches the text will be returned

 All lines that match the text will be returned

Published Data

The following table lists the published data items.

ItemDescription
Case sensitiveIndicates whether the Case sensitive check box was selected.
File encodingThe file encoding format that you selected in the File encoding field.
File nameThe name of the file that was searched for text.
Return first line or all linesIndicates whether the Only the first line that matches the text will be published or All lines that match the text will be published option was selected.
Line number of matchThe line number where matching text was found.
Match endThe character offset position that the match ends on.
Match startThe character offset position that the match starts on.
Matched textThe text that matched the search string.
Number of lines matchedThe number of lines where matching text was found.
Number of matchesThe number of matching items that were found.
Original lineThe entire line that contains the matching item.
Search textThe search string that was used for the search.
Use RegexIndicates whether the Use regular expressions check box was selected.
Show: