Chapter 14: - Using 3rd Party Common Tools

head

^^a.b+c*(de)?[^^f]\*^"$

The second added complication is that you may be executing grep through an additional shell, such as the WinNT cmd.exe, which has special semantics for , ^, ", and \, and for which you should actually put this on the command line or in your batch file:

"^^a.b+c*(de)?[^^f]\*^"$"

Or you may be executing grep through a build tool like pmake.exe, for which you'd have to say:

"^^^^a.b+c*(de)?[^^^^f]\*^^"$$"

Note:

If the environment variable Grep exists, its value is used to establish default options.

You can override an option that was specified in the environment variable by following the option with a minus '-' sign. For example, to turn off the -I option, specify -I-.

head

Note: This tool can be used in both Interactive Mode and Batch Mode. For details on scheduling this tool to run in batch mode see Using Batch Mode.

Use the Head utility to view a user-defined number of lines from the start of a file.

To Access Head from the Dashboard

To run Head from the Support Tools Dashboard:

Step 1 In the Arguments field, enter desired arguments, as described in the Using section below.

Note: When entering arguments, the Head command is already implied. Do not enter it in the Arguments field.

Step 2 Specify the command duration time or accept the default (60 seconds). This is the amount of time the command will attempt to run before terminating.

Step 3 If desired, check Elevate Command Priority. This ensures the command will run regardless of the level of server activity.

Step 4 Click the Run button.

Using Head - Command Line Options

Head displays the first <count> lines of each of the files listed on the line. If no files are listed, display the first <count> lines of the standard input.

Cisco Support Tools User Guide for Cisco Unified Software Release 2.1(1)

212

Page 226
Image 226
Cisco Systems 2.1(1) manual To Access Head from the Dashboard, Using Head Command Line Options, 212